home | list info | list archive | date index | thread index

Re: [OCLUG-Tech] can "git stash show" distinguish between staged and unstaged stash content?

  • Subject: Re: [OCLUG-Tech] can "git stash show" distinguish between staged and unstaged stash content?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Fri, 25 Sep 2015 05:32:58 -0400 (EDT)
On Thu, 24 Sep 2015, Alex Pilon wrote:

> On Thu, Sep 24, 2015 at 09:30:49AM -0400, Robert P. J. Day wrote:
> >   i'm sure there must be a simple answer to this -- given that "git
> > stash" will stash both the currently staged and unstaged content, is
> > there some variation of "git stash show -p" that will distinguish
> > between the content that was staged versus that which was unstaged?
>
> Short answer, `git show stash^2` to see the index, and `git show stash`
> for the WIP.
>
> You can't show this using git-stash itself AFAIK.

   ... snip ...

ah, that confirms my suspicion that "git stash" itself can't do it,
thanks. that's what i was trying to figure out.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================