{"thread":{"id":"2177","subject":"git-rev-parse: one more fix for \"--\"","startedAt":"2005-10-21T04:17:40Z","lastAt":"2005-10-21T04:17:40Z","messageCount":1,"participants":["Linus Torvalds"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"10409","messageId":"Pine.LNX.4.64.0510202115180.423@g5.osdl.org","threadId":"2177","inReplyTo":null,"subject":"git-rev-parse: one more fix for \"--\"","fromName":"Linus Torvalds","fromEmail":"torvalds@osdl.org","sentAt":"2005-10-21T04:17:40Z","receivedAt":"2005-10-21T04:17:40Z","isPatch":false,"sender":{"key":"torvalds@linux-foundation.org","avatar":"https://avatars.githubusercontent.com/u/1024025?v=4"},"body":"\nMy previous \"--\" fixup case missed one case: it would print any default \nrevision after the \"--\" rather than before.\n\nTrivially fixed.\n\nSigned-off-by: Linus Torvalds <torvalds@osdl.org>\n---\n\nGaah. If you haven't applied the previous patch yet, just combine the two \ndiffs into one.\n\ndiff --git a/rev-parse.c b/rev-parse.c\nindex 9ae2512..243f89f 100644\n--- a/rev-parse.c\n+++ b/rev-parse.c\n@@ -174,6 +174,7 @@ int main(int argc, char **argv)\n \t\tif (*arg == '-') {\n \t\t\tif (!strcmp(arg, \"--\")) {\n \t\t\t\tas_is = 1;\n+\t\t\t\tshow_default();\n \t\t\t\t/* Pass on the \"--\" if we show anything but files.. */\n \t\t\t\tif (filter & (DO_FLAGS | DO_REVS))\n \t\t\t\t\tshow_file(arg);\n"}]}