{"thread":{"id":"22656","subject":"Global reflog?","startedAt":"2010-02-14T21:49:10Z","lastAt":"2010-02-15T04:24:49Z","messageCount":4,"participants":["skillzero@gmail.com","Nicolas Pitre"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"134577","messageId":"2729632a1002141349s6c9a31b7u6784d89d132547ac@mail.gmail.com","threadId":"22656","inReplyTo":null,"subject":"Global reflog?","fromName":"","fromEmail":"skillzero@gmail.com","sentAt":"2010-02-14T21:49:10Z","receivedAt":"2010-02-14T21:49:10Z","isPatch":false,"sender":{"key":"skillzero@gmail.com","avatar":null},"body":"Is there a way to have git maintain a single reflog across all\nbranches (and stashes)? I switch between branches, create and delete\nbranches, stash save and pop, etc. frequently and it would be great\nfor me if there was a way to have a global reflog that showed every\noperation, independent of a particular branch. Is there some way to\nenable this?\n"},{"id":"134578","messageId":"alpine.LFD.2.00.1002141655450.1946@xanadu.home","threadId":"22656","inReplyTo":"2729632a1002141349s6c9a31b7u6784d89d132547ac@mail.gmail.com","subject":"Re: Global reflog?","fromName":"Nicolas Pitre","fromEmail":"nico@fluxnic.net","sentAt":"2010-02-14T21:56:38Z","receivedAt":"2010-02-14T21:56:38Z","isPatch":false,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Sun, 14 Feb 2010, skillzero@gmail.com wrote:\n\n> Is there a way to have git maintain a single reflog across all\n> branches (and stashes)? I switch between branches, create and delete\n> branches, stash save and pop, etc. frequently and it would be great\n> for me if there was a way to have a global reflog that showed every\n> operation, independent of a particular branch. Is there some way to\n> enable this?\n\nYou have it already.  It is the \"HEAD\" reflog.\n\n\nNicolas\n"},{"id":"134580","messageId":"2729632a1002141414l4c4ccd82j32693e6e3bd02bc5@mail.gmail.com","threadId":"22656","inReplyTo":"alpine.LFD.2.00.1002141655450.1946@xanadu.home","subject":"Re: Global reflog?","fromName":"","fromEmail":"skillzero@gmail.com","sentAt":"2010-02-14T22:14:13Z","receivedAt":"2010-02-14T22:14:13Z","isPatch":false,"sender":{"key":"skillzero@gmail.com","avatar":null},"body":"On Sun, Feb 14, 2010 at 1:56 PM, Nicolas Pitre <nico@fluxnic.net> wrote:\n> On Sun, 14 Feb 2010, skillzero@gmail.com wrote:\n>\n>> Is there a way to have git maintain a single reflog across all\n>> branches (and stashes)? I switch between branches, create and delete\n>> branches, stash save and pop, etc. frequently and it would be great\n>> for me if there was a way to have a global reflog that showed every\n>> operation, independent of a particular branch. Is there some way to\n>> enable this?\n>\n> You have it already.  It is the \"HEAD\" reflog.\n\nI don't seem to see any stash activity. For example, I made a test\nchange, did git stash, and then git stash pop. When I do git reflog, I\ndon't see the stash commit or the delete of the stash. Is there a way\nto enable that?\n"},{"id":"134598","messageId":"alpine.LFD.2.00.1002142320440.1946@xanadu.home","threadId":"22656","inReplyTo":"2729632a1002141414l4c4ccd82j32693e6e3bd02bc5@mail.gmail.com","subject":"Re: Global reflog?","fromName":"Nicolas Pitre","fromEmail":"nico@fluxnic.net","sentAt":"2010-02-15T04:24:49Z","receivedAt":"2010-02-15T04:24:49Z","isPatch":false,"sender":{"key":"nico@fluxnic.net","avatar":"https://avatars.githubusercontent.com/u/702790?v=4"},"body":"On Sun, 14 Feb 2010, skillzero@gmail.com wrote:\n\n> On Sun, Feb 14, 2010 at 1:56 PM, Nicolas Pitre <nico@fluxnic.net> wrote:\n> > On Sun, 14 Feb 2010, skillzero@gmail.com wrote:\n> >\n> >> Is there a way to have git maintain a single reflog across all\n> >> branches (and stashes)? I switch between branches, create and delete\n> >> branches, stash save and pop, etc. frequently and it would be great\n> >> for me if there was a way to have a global reflog that showed every\n> >> operation, independent of a particular branch. Is there some way to\n> >> enable this?\n> >\n> > You have it already.  It is the \"HEAD\" reflog.\n> \n> I don't seem to see any stash activity. For example, I made a test\n> change, did git stash, and then git stash pop. When I do git reflog, I\n> don't see the stash commit or the delete of the stash. Is there a way\n> to enable that?\n\nIt is true that stash doesn't touch HEAD.  So logically the stash \noperations should not end up in the HEAD reflog.  But maybe creating a \nreflog only for stashed states could be a good thing.\n\nI personally don't use stash that much since I've grown the habit of \nsaving temporary states to a temporary branch before git-stash even \nexisted, which in that case is always captured by the HEAD reflog.\n\n\nNicolas\n"}]}