{"thread":{"id":"41283","subject":"[PATCH] blame: display a more helpful error message if the file was deleted","startedAt":"2016-01-29T03:09:31Z","lastAt":"2016-01-29T03:10:19Z","messageCount":2,"participants":["Alex Henrie"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"277030","messageId":"1454036971-26287-1-git-send-email-alexhenrie24@gmail.com","threadId":"41283","inReplyTo":null,"subject":"[PATCH] blame: display a more helpful error message if the file was deleted","fromName":"Alex Henrie","fromEmail":"alexhenrie24@gmail.com","sentAt":"2016-01-29T03:09:31Z","receivedAt":"2016-01-29T03:09:31Z","isPatch":true,"sender":{"key":"alexhenrie24@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5951993?v=4"},"body":"`git blame 22414770 generate-cmdlist.perl` currently results in:\n    fatal: cannot stat path '22414770': No such file or directory\n\nThis patch changes the error message to:\n    fatal: ambiguous argument 'generate-cmdlist.perl': unknown revision\n    or path not in the working tree.\n    Use '--' to separate paths from revisions, like this:\n    'git <command> [<revision>...] -- [<file>...]'\"\n\nThat way, the user knows to rewrite the command as\n`git blame 22414770 -- generate-cmdlist.perl`.\n\nSigned-off-by: Alex Henrie <alexhenrie24@gmail.com>\n---\n builtin/blame.c | 2 --\n 1 file changed, 2 deletions(-)\n\ndiff --git a/builtin/blame.c b/builtin/blame.c\nindex 55bf5fa..9461a73 100644\n--- a/builtin/blame.c\n+++ b/builtin/blame.c\n@@ -2704,8 +2704,6 @@ parse_done:\n \t\targv[argc - 1] = \"--\";\n \n \t\tsetup_work_tree();\n-\t\tif (!file_exists(path))\n-\t\t\tdie_errno(\"cannot stat path '%s'\", path);\n \t}\n \n \trevs.disable_stdin = 1;\n-- \n2.7.0\n"},{"id":"277031","messageId":"CAMMLpeSkBxUwH1P=rROVVXK=Z+3V=9mfhqxp8gcx9_D6eU3dTA@mail.gmail.com","threadId":"41283","inReplyTo":"1454036971-26287-1-git-send-email-alexhenrie24@gmail.com","subject":"Re: [PATCH] blame: display a more helpful error message if the file was deleted","fromName":"Alex Henrie","fromEmail":"alexhenrie24@gmail.com","sentAt":"2016-01-29T03:10:19Z","receivedAt":"2016-01-29T03:10:19Z","isPatch":true,"sender":{"key":"alexhenrie24@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5951993?v=4"},"body":"Sorry, wrong patch...this issue has already been fixed\n\n-Alex\n"}]}