* Strange behaviour of git log --follow
@ 2019-03-07 8:34 Victor
0 siblings, 0 replies; 5+ messages in thread
From: Victor @ 2019-03-07 8:34 UTC (permalink / raw)
To: git
Hello.
$ git log include/__vic/mutex.h
commit 9429293f8f8fb0819c77cf1f723567f6edc8fb6a
Merge: 96dd9a2 f484f4e
Author: __vic <__vic@ngs.ru>
Date: 2017-12-13 10:41:32 +0300
Merge branch 'generic' into posix
commit f484f4e8aae32041ba56bdce12d1efd8491e94d5
Merge: 86b848a b9bbbe6
Author: __vic <__vic@ngs.ru>
Date: 2017-12-12 17:35:10 +0300
waitable_event, thread, mutex
$ git log --follow include/__vic/mutex.h
$
Why --follow makes git produce truncated history for file
that wasn't renamed?
My repository is available here
https://github.com/2underscores-vic/__vic
^ permalink raw reply [flat|nested] 5+ messages in thread
* Strange behaviour of git log --follow
@ 2019-03-28 12:10 Victor
2019-03-28 13:16 ` Ævar Arnfjörð Bjarmason
0 siblings, 1 reply; 5+ messages in thread
From: Victor @ 2019-03-28 12:10 UTC (permalink / raw)
To: git
Hello.
$ git log include/__vic/mutex.h
commit 9429293f8f8fb0819c77cf1f723567f6edc8fb6a
Merge: 96dd9a2 f484f4e
Author: __vic <__vic@ngs.ru>
Date: 2017-12-13 10:41:32 +0300
Merge branch 'generic' into posix
commit f484f4e8aae32041ba56bdce12d1efd8491e94d5
Merge: 86b848a b9bbbe6
Author: __vic <__vic@ngs.ru>
Date: 2017-12-12 17:35:10 +0300
waitable_event, thread, mutex
$ git log --follow include/__vic/mutex.h
$
Why --follow makes git produce truncated history for file
that wasn't renamed?
My repository is available here
https://github.com/2underscores-vic/__vic
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Strange behaviour of git log --follow
2019-03-28 12:10 Strange behaviour of git log --follow Victor
@ 2019-03-28 13:16 ` Ævar Arnfjörð Bjarmason
2019-03-28 13:32 ` Victor
0 siblings, 1 reply; 5+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2019-03-28 13:16 UTC (permalink / raw)
To: Victor; +Cc: git
On Thu, Mar 28 2019, Victor wrote:
> Hello.
>
> $ git log include/__vic/mutex.h
> commit 9429293f8f8fb0819c77cf1f723567f6edc8fb6a
> Merge: 96dd9a2 f484f4e
> Author: __vic <__vic@ngs.ru>
> Date: 2017-12-13 10:41:32 +0300
>
> Merge branch 'generic' into posix
>
> commit f484f4e8aae32041ba56bdce12d1efd8491e94d5
> Merge: 86b848a b9bbbe6
> Author: __vic <__vic@ngs.ru>
> Date: 2017-12-12 17:35:10 +0300
>
> waitable_event, thread, mutex
> $ git log --follow include/__vic/mutex.h
> $
>
> Why --follow makes git produce truncated history for file that wasn't
> renamed?
>
> My repository is available here
> https://github.com/2underscores-vic/__vic
I just briefly looked at this. It's because all changes to the relevant
file are in merge commits. If you run the "log" with "--stat" you'll see
no output.
Something in the --follow machinery takes the same shortcut on merges
and doesn't consider them.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Strange behaviour of git log --follow
2019-03-28 13:16 ` Ævar Arnfjörð Bjarmason
@ 2019-03-28 13:32 ` Victor
2019-03-28 13:38 ` Ævar Arnfjörð Bjarmason
0 siblings, 1 reply; 5+ messages in thread
From: Victor @ 2019-03-28 13:32 UTC (permalink / raw)
To: avarab; +Cc: git
Any plans to fix this?
On Thu, 28 Mar 2019 14:16:43 +0100
Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
>
> On Thu, Mar 28 2019, Victor wrote:
>
>> Hello.
>>
>> $ git log include/__vic/mutex.h
>> commit 9429293f8f8fb0819c77cf1f723567f6edc8fb6a
>> Merge: 96dd9a2 f484f4e
>> Author: __vic <__vic@ngs.ru>
>> Date: 2017-12-13 10:41:32 +0300
>>
>> Merge branch 'generic' into posix
>>
>> commit f484f4e8aae32041ba56bdce12d1efd8491e94d5
>> Merge: 86b848a b9bbbe6
>> Author: __vic <__vic@ngs.ru>
>> Date: 2017-12-12 17:35:10 +0300
>>
>> waitable_event, thread, mutex
>> $ git log --follow include/__vic/mutex.h
>> $
>>
>> Why --follow makes git produce truncated history for
>>file that wasn't
>> renamed?
>>
>> My repository is available here
>> https://github.com/2underscores-vic/__vic
>
> I just briefly looked at this. It's because all changes
>to the relevant
> file are in merge commits. If you run the "log" with
>"--stat" you'll see
> no output.
>
> Something in the --follow machinery takes the same
>shortcut on merges
> and doesn't consider them.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Strange behaviour of git log --follow
2019-03-28 13:32 ` Victor
@ 2019-03-28 13:38 ` Ævar Arnfjörð Bjarmason
0 siblings, 0 replies; 5+ messages in thread
From: Ævar Arnfjörð Bjarmason @ 2019-03-28 13:38 UTC (permalink / raw)
To: Victor; +Cc: git
On Thu, Mar 28 2019, Victor wrote:
> Any plans to fix this?
No. I just thought I'd peek at it for a sec, sorry. Maybe someone else
is interested it poking it some more.
> On Thu, 28 Mar 2019 14:16:43 +0100
> Ævar Arnfjörð Bjarmason <avarab@gmail.com> wrote:
>>
>> On Thu, Mar 28 2019, Victor wrote:
>>
>>> Hello.
>>>
>>> $ git log include/__vic/mutex.h
>>> commit 9429293f8f8fb0819c77cf1f723567f6edc8fb6a
>>> Merge: 96dd9a2 f484f4e
>>> Author: __vic <__vic@ngs.ru>
>>> Date: 2017-12-13 10:41:32 +0300
>>>
>>> Merge branch 'generic' into posix
>>>
>>> commit f484f4e8aae32041ba56bdce12d1efd8491e94d5
>>> Merge: 86b848a b9bbbe6
>>> Author: __vic <__vic@ngs.ru>
>>> Date: 2017-12-12 17:35:10 +0300
>>>
>>> waitable_event, thread, mutex
>>> $ git log --follow include/__vic/mutex.h
>>> $
>>>
>>> Why --follow makes git produce truncated history for file that
>>> wasn't
>>> renamed?
>>>
>>> My repository is available here
>>> https://github.com/2underscores-vic/__vic
>>
>> I just briefly looked at this. It's because all changes to the
>> relevant
>> file are in merge commits. If you run the "log" with "--stat" you'll
>> see
>> no output.
>>
>> Something in the --follow machinery takes the same shortcut on
>> merges
>> and doesn't consider them.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2019-03-28 13:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-28 12:10 Strange behaviour of git log --follow Victor
2019-03-28 13:16 ` Ævar Arnfjörð Bjarmason
2019-03-28 13:32 ` Victor
2019-03-28 13:38 ` Ævar Arnfjörð Bjarmason
-- strict thread matches above, loose matches on Subject: below --
2019-03-07 8:34 Victor
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).