{"thread":{"id":"53684","subject":"git log -- <old path> not working","startedAt":"2020-06-15T21:25:28Z","lastAt":"2020-06-17T20:18:40Z","messageCount":2,"participants":["Ville Syrjälä","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"399823","messageId":"20200615212521.GT6112@intel.com","threadId":"53684","inReplyTo":null,"subject":"git log -- <old path> not working","fromName":"Ville Syrjälä","fromEmail":"ville.syrjala@linux.intel.com","sentAt":"2020-06-15T21:25:21Z","receivedAt":"2020-06-15T21:25:28Z","isPatch":false,"sender":{"key":"ville.syrjala@linux.intel.com","avatar":null},"body":"Hi,\n\nJust ran into a strange case with the Linux kernel repo\nwhen trying to look up the history for a file that was\nlater renamed.\n\n$ git log -- drivers/acpi/configfs.c\n-> nothing\n\n$ git log --follow -- drivers/acpi/configfs.c\n$ git log --full-history -- drivers/acpi/configfs.c\n-> works\n\nFirst time I've seen this fail. Expected behaviour for\nsome reason, or a bug?\n\n$ git --version \ngit version 2.26.2\n\n-- \nVille Syrjälä\nIntel\n"},{"id":"399998","messageId":"xmqqlfkltpib.fsf@gitster.c.googlers.com","threadId":"53684","inReplyTo":"20200615212521.GT6112@intel.com","subject":"Re: git log -- <old path> not working","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2020-06-17T20:18:36Z","receivedAt":"2020-06-17T20:18:40Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Ville Syrjälä <ville.syrjala@linux.intel.com> writes:\n\n> $ git log -- drivers/acpi/configfs.c\n> -> nothing\n>\n> $ git log --follow -- drivers/acpi/configfs.c\n> $ git log --full-history -- drivers/acpi/configfs.c\n> -> works\n>\n> First time I've seen this fail. Expected behaviour for\n> some reason, or a bug?\n\nExpected.  \n\nIn a history is branchy and mergy,\n\n    ---O---o---o---o---o---M---x\n        \\                 /\n         o---A---o---B---o\n\nwhere A, B and possibly M made changes to PATH,\n\n    $ git log X -- PATH\n\nmay show nothing if the PATH at O and M are identical.  This is\ndescribed in \"History Simplification\" section of \"git log --help\"\n"}]}