# Global reflog?

4 messages from 2010-02-14 to 2010-02-15. Participants: skillzero@gmail.com, Nicolas Pitre.
Thread: https://gitlist.dev/t/22656

## skillzero@gmail.com, 2010-02-14 21:49

Subject: Global reflog?
Message-ID: <2729632a1002141349s6c9a31b7u6784d89d132547ac@mail.gmail.com>
URL: https://gitlist.dev/e/2729632a1002141349s6c9a31b7u6784d89d132547ac%40mail.gmail.com

```
Is there a way to have git maintain a single reflog across all
branches (and stashes)? I switch between branches, create and delete
branches, stash save and pop, etc. frequently and it would be great
for me if there was a way to have a global reflog that showed every
operation, independent of a particular branch. Is there some way to
enable this?

```

## Nicolas Pitre, 2010-02-14 21:56

Subject: Re: Global reflog?
Message-ID: <alpine.LFD.2.00.1002141655450.1946@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.2.00.1002141655450.1946%40xanadu.home
In-Reply-To: <2729632a1002141349s6c9a31b7u6784d89d132547ac@mail.gmail.com>

```
On Sun, 14 Feb 2010, skillzero@gmail.com wrote:

> Is there a way to have git maintain a single reflog across all
> branches (and stashes)? I switch between branches, create and delete
> branches, stash save and pop, etc. frequently and it would be great
> for me if there was a way to have a global reflog that showed every
> operation, independent of a particular branch. Is there some way to
> enable this?

You have it already.  It is the "HEAD" reflog.


Nicolas

```

## skillzero@gmail.com, 2010-02-14 22:14

Subject: Re: Global reflog?
Message-ID: <2729632a1002141414l4c4ccd82j32693e6e3bd02bc5@mail.gmail.com>
URL: https://gitlist.dev/e/2729632a1002141414l4c4ccd82j32693e6e3bd02bc5%40mail.gmail.com
In-Reply-To: <alpine.LFD.2.00.1002141655450.1946@xanadu.home>

```
On Sun, Feb 14, 2010 at 1:56 PM, Nicolas Pitre <nico@fluxnic.net> wrote:
> On Sun, 14 Feb 2010, skillzero@gmail.com wrote:
>
>> Is there a way to have git maintain a single reflog across all
>> branches (and stashes)? I switch between branches, create and delete
>> branches, stash save and pop, etc. frequently and it would be great
>> for me if there was a way to have a global reflog that showed every
>> operation, independent of a particular branch. Is there some way to
>> enable this?
>
> You have it already.  It is the "HEAD" reflog.

I don't seem to see any stash activity. For example, I made a test
change, did git stash, and then git stash pop. When I do git reflog, I
don't see the stash commit or the delete of the stash. Is there a way
to enable that?

```

## Nicolas Pitre, 2010-02-15 04:24

Subject: Re: Global reflog?
Message-ID: <alpine.LFD.2.00.1002142320440.1946@xanadu.home>
URL: https://gitlist.dev/e/alpine.LFD.2.00.1002142320440.1946%40xanadu.home
In-Reply-To: <2729632a1002141414l4c4ccd82j32693e6e3bd02bc5@mail.gmail.com>

```
On Sun, 14 Feb 2010, skillzero@gmail.com wrote:

> On Sun, Feb 14, 2010 at 1:56 PM, Nicolas Pitre <nico@fluxnic.net> wrote:
> > On Sun, 14 Feb 2010, skillzero@gmail.com wrote:
> >
> >> Is there a way to have git maintain a single reflog across all
> >> branches (and stashes)? I switch between branches, create and delete
> >> branches, stash save and pop, etc. frequently and it would be great
> >> for me if there was a way to have a global reflog that showed every
> >> operation, independent of a particular branch. Is there some way to
> >> enable this?
> >
> > You have it already.  It is the "HEAD" reflog.
> 
> I don't seem to see any stash activity. For example, I made a test
> change, did git stash, and then git stash pop. When I do git reflog, I
> don't see the stash commit or the delete of the stash. Is there a way
> to enable that?

It is true that stash doesn't touch HEAD.  So logically the stash 
operations should not end up in the HEAD reflog.  But maybe creating a 
reflog only for stashed states could be a good thing.

I personally don't use stash that much since I've grown the habit of 
saving temporary states to a temporary branch before git-stash even 
existed, which in that case is always captured by the HEAD reflog.


Nicolas

```
