{"thread":{"id":"13334","subject":"git-rebase and reflog","startedAt":"2008-04-30T16:04:02Z","lastAt":"2008-04-30T17:38:53Z","messageCount":8,"participants":["Ping Yin","Jakub Narebski","Brandon Casey","Avery Pennarun","Junio C Hamano"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"75685","messageId":"46dff0320804300904i3402b5e7wf827f6759bc52901@mail.gmail.com","threadId":"13334","inReplyTo":null,"subject":"git-rebase and reflog","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-04-30T16:04:02Z","receivedAt":"2008-04-30T16:04:02Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"The history of git-rebase will go into reflog. This kind of behaviour\nmakes me annoyed when using git-reflog where i can see so many useless\nintermediate log entries (generated by rebase).\n\nSo how about not recording the intermediate commits to reflog?\n\n\n-- \nPing Yin\n"},{"id":"75687","messageId":"m3d4o7nvt2.fsf@localhost.localdomain","threadId":"13334","inReplyTo":"46dff0320804300904i3402b5e7wf827f6759bc52901@mail.gmail.com","subject":"Re: git-rebase and reflog","fromName":"Jakub Narebski","fromEmail":"jnareb@gmail.com","sentAt":"2008-04-30T16:37:17Z","receivedAt":"2008-04-30T16:37:17Z","isPatch":false,"sender":{"key":"jnareb@gmail.com","avatar":"https://avatars.githubusercontent.com/u/2706?v=4"},"body":"\"Ping Yin\" <pkufranky@gmail.com> writes:\n\n> The history of git-rebase will go into reflog. This kind of behaviour\n> makes me annoyed when using git-reflog where i can see so many useless\n> intermediate log entries (generated by rebase).\n> \n> So how about not recording the intermediate commits to reflog?\n\nIf I remember and understand it correctly, because currently rebase\nuses detached HEAD, the intermediate steps would go into HEAD reflog,\nbut only final step would go into branch reflog...\n\nPlease correct me if I am wrong.\n-- \nJakub Narebski\nPoland\nShadeHawk on #git\n"},{"id":"75690","messageId":"46dff0320804300956x7e4f34efle39f6cad2e98a2de@mail.gmail.com","threadId":"13334","inReplyTo":"m3d4o7nvt2.fsf@localhost.localdomain","subject":"Re: git-rebase and reflog","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-04-30T16:56:12Z","receivedAt":"2008-04-30T16:56:12Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Thu, May 1, 2008 at 12:37 AM, Jakub Narebski <jnareb@gmail.com> wrote:\n>\n> \"Ping Yin\" <pkufranky@gmail.com> writes:\n>\n>  > The history of git-rebase will go into reflog. This kind of behaviour\n>  > makes me annoyed when using git-reflog where i can see so many useless\n>  > intermediate log entries (generated by rebase).\n>  >\n>  > So how about not recording the intermediate commits to reflog?\n>\n>  If I remember and understand it correctly, because currently rebase\n>  uses detached HEAD, the intermediate steps would go into HEAD reflog,\n>  but only final step would go into branch reflog...\n>\n>  Please correct me if I am wrong.\n\nI am also not clear about this.\n\nIf your are right, how can i look over the branch reflog. I know the\nmaster@{1} syntax, but i want to see master@{1}, master@{2} until\nmaster@{n} in a single command just as how 'git reflog' shows HEAD@{1}\n to HEAD@{n}.\n\n\n-- \nPing Yin\n"},{"id":"75692","messageId":"4818A6CA.5000409@nrlssc.navy.mil","threadId":"13334","inReplyTo":"46dff0320804300956x7e4f34efle39f6cad2e98a2de@mail.gmail.com","subject":"Re: git-rebase and reflog","fromName":"Brandon Casey","fromEmail":"casey@nrlssc.navy.mil","sentAt":"2008-04-30T17:05:14Z","receivedAt":"2008-04-30T17:05:14Z","isPatch":false,"sender":{"key":"drafnel@gmail.com","avatar":"https://avatars.githubusercontent.com/u/921167?v=4"},"body":"Ping Yin wrote:\n\n> If your are right, how can i look over the branch reflog. I know the\n> master@{1} syntax, but i want to see master@{1}, master@{2} until\n> master@{n} in a single command just as how 'git reflog' shows HEAD@{1}\n>  to HEAD@{n}.\n\nHave you checked the documentation for 'git reflog'?\n\nIt says:\n\n   The subcommand \"show\" (which is also the default, in the absence of any\n   subcommands) will take all the normal log options, and show the log of\n   the reference provided in the command-line (or `HEAD`, by default).\n\nSo, 'git reflog show master' should get you what you want.\n\nYou may also want to check out the '-g' option to git-log. For example,\n'git log -g master'.\n\n-brandon\n"},{"id":"75693","messageId":"46dff0320804301013o17da30cg1fd847beca94ff58@mail.gmail.com","threadId":"13334","inReplyTo":"4818A6CA.5000409@nrlssc.navy.mil","subject":"Re: git-rebase and reflog","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-04-30T17:13:24Z","receivedAt":"2008-04-30T17:13:24Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Thu, May 1, 2008 at 1:05 AM, Brandon Casey <casey@nrlssc.navy.mil> wrote:\n> Ping Yin wrote:\n>\n>  > If your are right, how can i look over the branch reflog. I know the\n>  > master@{1} syntax, but i want to see master@{1}, master@{2} until\n>  > master@{n} in a single command just as how 'git reflog' shows HEAD@{1}\n>  >  to HEAD@{n}.\n>\n>  Have you checked the documentation for 'git reflog'?\n>\n>  It says:\n>\n>    The subcommand \"show\" (which is also the default, in the absence of any\n>    subcommands) will take all the normal log options, and show the log of\n>    the reference provided in the command-line (or `HEAD`, by default).\n>\n>  So, 'git reflog show master' should get you what you want.\n\nOh, i missed that. Maybe we should add an example section.\n\n>\n>  You may also want to check out the '-g' option to git-log. For example,\n>  'git log -g master'.\n\nOh, wonderful.\n\nHowever, i still think the intemediate commits of git-rebase needn't\ngo into HEAD's reflog because it's totally useless.\n\n\n\n-- \nPing Yin\n"},{"id":"75696","messageId":"32541b130804301022l3a072f2p47ccb5639cd8a24e@mail.gmail.com","threadId":"13334","inReplyTo":"46dff0320804301013o17da30cg1fd847beca94ff58@mail.gmail.com","subject":"Re: git-rebase and reflog","fromName":"Avery Pennarun","fromEmail":"apenwarr@gmail.com","sentAt":"2008-04-30T17:22:34Z","receivedAt":"2008-04-30T17:22:34Z","isPatch":false,"sender":{"key":"apenwarr@gmail.com","avatar":"https://avatars.githubusercontent.com/u/20592?v=4"},"body":"On 4/30/08, Ping Yin <pkufranky@gmail.com> wrote:\n>  However, i still think the intemediate commits of git-rebase needn't\n>  go into HEAD's reflog because it's totally useless.\n\nI don't know, I can imagine a situation where I'm doing a rebase, I\nget a conflict, I type the wrong command, and so I lose a bunch of my\nintermediate work because I was an idiot.  The reflog sounds like it\nwould be helpful here as much as anywhere.\n\nHave fun,\n\nAvery\n"},{"id":"75701","messageId":"7v7ief1c27.fsf@gitster.siamese.dyndns.org","threadId":"13334","inReplyTo":"46dff0320804301013o17da30cg1fd847beca94ff58@mail.gmail.com","subject":"Re: git-rebase and reflog","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-04-30T17:34:40Z","receivedAt":"2008-04-30T17:34:40Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"\"Ping Yin\" <pkufranky@gmail.com> writes:\n\n> However, i still think the intemediate commits of git-rebase needn't\n> go into HEAD's reflog because it's totally useless.\n\nActually I use it from time to time when I need to compare intermediate\nsteps of _previous_ run of the same rebase while rebasing, if the current\nrun needs to resolve conflicts (may be the same conflict, may be a\ndifferent conflict, depending on what bases are used for the current run\nand the previous run).\n\nPlease do not break it.\n"},{"id":"75702","messageId":"46dff0320804301038l283544b9t8c9e0649fbced65e@mail.gmail.com","threadId":"13334","inReplyTo":"7v7ief1c27.fsf@gitster.siamese.dyndns.org","subject":"Re: git-rebase and reflog","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2008-04-30T17:38:53Z","receivedAt":"2008-04-30T17:38:53Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Thu, May 1, 2008 at 1:34 AM, Junio C Hamano <gitster@pobox.com> wrote:\n> \"Ping Yin\" <pkufranky@gmail.com> writes:\n>\n>\n> > However, i still think the intemediate commits of git-rebase needn't\n>  > go into HEAD's reflog because it's totally useless.\n>\n>  Actually I use it from time to time when I need to compare intermediate\n>  steps of _previous_ run of the same rebase while rebasing, if the current\n>  run needs to resolve conflicts (may be the same conflict, may be a\n>  different conflict, depending on what bases are used for the current run\n>  and the previous run).\n\nOK, i'm wrong, it is a useful case.\n\n\n\n-- \nPing Yin\n"}]}