[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#27953: vc-region-history doesn't follow renames
From: |
Kyle Meyer |
Subject: |
bug#27953: vc-region-history doesn't follow renames |
Date: |
Sat, 05 Aug 2017 13:05:52 -0400 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Clément Pit--Claudel <clement.pitclaudel@live.com> writes:
> On 2017-08-04 19:21, Stefan Monnier wrote:
>>> Indeed, `git log -p --follow -L5,25:file.c' doesn't work. But `git
>>> log -p --follow -L5,25:file.c file.c' does work (note the extra mention of
>>> the file name).
>>
>> Hmm... what's the difference between
>>
>> git log -p -L5,25:file.c
>> and
>> git log -p -L5,25:file.c file.c
>
> The second one allows --follow; the first one doesn't. I don't know what
> differences they may be beyond that :/
As Andreas mentioned, even though git doesn't throw an error, giving a
pathspec with -L is documented as invalid.
But you shouldn't need to add --follow here. Renames should be followed
by default when -L is used. (At least, that's what I see using Git
v2.13.3.)
--
Kyle