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

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

  • Subject: Re: [OCLUG-Tech] is there any way to see the staged/unstaged changes in a stash?
  • From: James <bjlockie [ at ] lockie [ dot ] ca>
  • Date: Sat, 06 May 2017 08:51:18 -0400
git status


On May 6, 2017 4:48:04 AM "Robert P. J. Day" <rpjday [ at ] crashcourse [ dot ] ca> wrote:


  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
========================================================================
_______________________________________________
Linux mailing list
Linux [ at ] lists [ dot ] oclug [ dot ] on [ dot ] ca
http://oclug.on.ca/mailman/listinfo/linux