{"thread":{"id":"6505","subject":"[RFC] revision walker: introduce shortcut -g for --walk-reflogs","startedAt":"2007-01-24T14:05:16Z","lastAt":"2007-01-24T23:09:10Z","messageCount":2,"participants":["Johannes Schindelin","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"32520","messageId":"Pine.LNX.4.63.0701241505050.22628@wbgn013.biozentrum.uni-wuerzburg.de","threadId":"6505","inReplyTo":null,"subject":"[RFC] revision walker: introduce shortcut -g for --walk-reflogs","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2007-01-24T14:05:16Z","receivedAt":"2007-01-24T14:05:16Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"\nSince reflogs are such a useful thing, I need a short way to tell\ngit-log to show me the history according to the reflogs.\n\nSigned-off-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>\n---\n Documentation/git-rev-list.txt |    2 +-\n revision.c                     |    3 ++-\n 2 files changed, 3 insertions(+), 2 deletions(-)\n\ndiff --git a/Documentation/git-rev-list.txt b/Documentation/git-rev-list.txt\nindex beb0906..4f145ea 100644\n--- a/Documentation/git-rev-list.txt\n+++ b/Documentation/git-rev-list.txt\n@@ -192,7 +192,7 @@ limiting may be applied.\n \tIn addition to the '<commit>' listed on the command\n \tline, read them from the standard input.\n \n---walk-reflogs::\n+-g, --walk-reflogs::\n \n \tInstead of walking the commit ancestry chain, walk\n \treflog entries from the most recent one to older ones.\ndiff --git a/revision.c b/revision.c\nindex 6726f73..42ba310 100644\n--- a/revision.c\n+++ b/revision.c\n@@ -868,7 +868,8 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch\n \t\t\t\thandle_reflog(revs, flags);\n \t\t\t\tcontinue;\n \t\t\t}\n-\t\t\tif (!strcmp(arg, \"--walk-reflogs\")) {\n+\t\t\tif (!strcmp(arg, \"-g\") ||\n+\t\t\t\t\t!strcmp(arg, \"--walk-reflogs\")) {\n \t\t\t\tinit_reflog_walk(&revs->reflog_info);\n \t\t\t\tcontinue;\n \t\t\t}\n-- \n1.5.0.rc2.g8b13f-dirty\n"},{"id":"32570","messageId":"7vveiwdnu1.fsf@assigned-by-dhcp.cox.net","threadId":"6505","inReplyTo":"Pine.LNX.4.63.0701241505050.22628@wbgn013.biozentrum.uni-wuerzburg.de","subject":"Re: [RFC] revision walker: introduce shortcut -g for --walk-reflogs","fromName":"Junio C Hamano","fromEmail":"junkio@cox.net","sentAt":"2007-01-24T23:09:10Z","receivedAt":"2007-01-24T23:09:10Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"I think this makes sense (will do the same for the other one).\n"}]}