git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Global reflog?
@ 2010-02-14 21:49 skillzero
  2010-02-14 21:56 ` Nicolas Pitre
  0 siblings, 1 reply; 4+ messages in thread
From: skillzero @ 2010-02-14 21:49 UTC (permalink / raw)
  To: Git Mailing List

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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Global reflog?
  2010-02-14 21:49 Global reflog? skillzero
@ 2010-02-14 21:56 ` Nicolas Pitre
  2010-02-14 22:14   ` skillzero
  0 siblings, 1 reply; 4+ messages in thread
From: Nicolas Pitre @ 2010-02-14 21:56 UTC (permalink / raw)
  To: skillzero; +Cc: Git Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Global reflog?
  2010-02-14 21:56 ` Nicolas Pitre
@ 2010-02-14 22:14   ` skillzero
  2010-02-15  4:24     ` Nicolas Pitre
  0 siblings, 1 reply; 4+ messages in thread
From: skillzero @ 2010-02-14 22:14 UTC (permalink / raw)
  To: Nicolas Pitre; +Cc: Git Mailing List

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?

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Global reflog?
  2010-02-14 22:14   ` skillzero
@ 2010-02-15  4:24     ` Nicolas Pitre
  0 siblings, 0 replies; 4+ messages in thread
From: Nicolas Pitre @ 2010-02-15  4:24 UTC (permalink / raw)
  To: skillzero; +Cc: Git Mailing List

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1261 bytes --]

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-15  4:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-14 21:49 Global reflog? skillzero
2010-02-14 21:56 ` Nicolas Pitre
2010-02-14 22:14   ` skillzero
2010-02-15  4:24     ` Nicolas Pitre

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).