git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* git log -- <old path> not working
@ 2020-06-15 21:25 Ville Syrjälä
  2020-06-17 20:18 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Ville Syrjälä @ 2020-06-15 21:25 UTC (permalink / raw)
  To: git

Hi,

Just ran into a strange case with the Linux kernel repo
when trying to look up the history for a file that was
later renamed.

$ git log -- drivers/acpi/configfs.c
-> nothing

$ git log --follow -- drivers/acpi/configfs.c
$ git log --full-history -- drivers/acpi/configfs.c
-> works

First time I've seen this fail. Expected behaviour for
some reason, or a bug?

$ git --version 
git version 2.26.2

-- 
Ville Syrjälä
Intel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: git log -- <old path> not working
  2020-06-15 21:25 git log -- <old path> not working Ville Syrjälä
@ 2020-06-17 20:18 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2020-06-17 20:18 UTC (permalink / raw)
  To: Ville Syrjälä; +Cc: git

Ville Syrjälä <ville.syrjala@linux.intel.com> writes:

> $ git log -- drivers/acpi/configfs.c
> -> nothing
>
> $ git log --follow -- drivers/acpi/configfs.c
> $ git log --full-history -- drivers/acpi/configfs.c
> -> works
>
> First time I've seen this fail. Expected behaviour for
> some reason, or a bug?

Expected.  

In a history is branchy and mergy,

    ---O---o---o---o---o---M---x
        \                 /
         o---A---o---B---o

where A, B and possibly M made changes to PATH,

    $ git log X -- PATH

may show nothing if the PATH at O and M are identical.  This is
described in "History Simplification" section of "git log --help"

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-06-17 20:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-15 21:25 git log -- <old path> not working Ville Syrjälä
2020-06-17 20:18 ` Junio C Hamano

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).