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 :/ > Would this issue deserve a bug-report to Git? Possibly; it's a bit intimidating. >> Any arguments against the attached patch? > > I'd suggest to compute (file-relative-name file) only once, and to add > bug#27953 to the comment, but otherwise, looks good. Attached an updated version :) Clément.