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

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

  • Subject: [OCLUG-Tech] can "git stash show" distinguish between staged and unstaged changes?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Thu, 7 May 2015 06:13:23 -0400 (EDT)
  yet another question i should know the answer to but don't -- is
there a way to distinguish between the staged and unstaged changes in
a stash entry with "git stash show"?

  as a test, i made a small change, staged that, then made another
change without staging, and stashed the whole thing. clearly, the git
stash understands the difference since i can ask for staged changes to
be re-added to the index explicitly with:

 $ git stash {pop,apply} --index

but i see no obvious way to simply *display* that information -- all
i get is the total diff. is such a thing possible? am i overlooking
something obvious?

rday

-- 

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

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