{"thread":{"id":"24886","subject":"git blame vs. directory symlinks","startedAt":"2010-08-27T11:25:12Z","lastAt":"2010-08-27T11:25:12Z","messageCount":1,"participants":["Alexander Gladysh"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"149117","messageId":"AANLkTik-9H+KUjn-v7d4EeHaBn8=u5GjOi39T03EmCHG@mail.gmail.com","threadId":"24886","inReplyTo":null,"subject":"git blame vs. directory symlinks","fromName":"Alexander Gladysh","fromEmail":"agladysh@gmail.com","sentAt":"2010-08-27T11:25:12Z","receivedAt":"2010-08-27T11:25:12Z","isPatch":false,"sender":{"key":"agladysh@gmail.com","avatar":"https://avatars.githubusercontent.com/u/38239?v=4"},"body":"Hi, list!\n\nOS X 10.6.4\ngit version 1.7.2.2\n\nAnother bug with symlinked directories.\n\nThe git blame works correctly for the symliked files, displaying the\nhistory for the symlink source.\n\nHowever, if the symlink is not the file itself, but a directory in\npath, git blame reports the file as \"not committed yet\".\n\nSee minimal example below.\n\nHTH,\nAlexander.\n\nmkdir repo && cd repo\ngit init\nmkdir alpha\necho \"one\" > alpha/file.txt\ngit add .\ngit commit -m \"initial commit\"\necho \"two\" >> alpha/file.txt\ngit commit -a -m \"updated alpha\"\nln -s alpha beta\ngit add .\ngit commit -m \"beta symlink\"\n\ngit blame alpha/file.txt\n^33848ab (Alexander Gladysh 2010-08-27 15:16:16 +0400 1) one\n5afed689 (Alexander Gladysh 2010-08-27 15:16:35 +0400 2) two\n\ngit blame beta/file.txt\n00000000 (Not Committed Yet 2010-08-27 15:17:04 +0400 1) one\n00000000 (Not Committed Yet 2010-08-27 15:17:04 +0400 2) two\n"}]}