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

[OCLUG-Tech] is there any way to see the staged/unstaged changes in a stash?

  • Subject: [OCLUG-Tech] is there any way to see the staged/unstaged changes in a stash?
  • From: "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca>
  • Date: Sat, 6 May 2017 04:47:43 -0400 (EDT)
  i'm sure there's a simple way to do this, i just don't know what it
is. when i do a "git stash save", i know that the stash distinguishes
between the changes already staged in the index, and the unstaged
changes, but i don't know a simple way to display those changes
independently -- "git show" shows just the combination of those
changes.

  based on how git saves stashes, i know that i can display those
changes (for stash@{0}) with:

  $ git diff stash@{0}^2 stash@{0}     (unstaged changes)
  $ git diff stash@{0}^2^ stash@{0}^2  (staged changes)

but surely there's a simpler way, no?

rday

-- 

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

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