git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Behaviour of 'git stash show' when a stash has untracked files
@ 2017-09-17  5:07 Kaartic Sivaraam
  0 siblings, 0 replies; 9+ messages in thread
From: Kaartic Sivaraam @ 2017-09-17  5:07 UTC (permalink / raw)
  To: git

Some time ago, I stashed a few changes along with untracked files. I
almost forgot it until recently. Then I wanted to see what I change I
had in the stash. So I did a 'git stash show <num>'. It worked fine but
didn't say anything about the untracked files in that stash. That made
me wonder where the untracked files I added went. I then applied the
stash to see that they were still there but weren't listed in show.

I understand that they aren't listed because 'git stash show' is
typically a "diff between the stashed state and its original parent" as
the documentation says but shouldn't there be at least a message that
the stash contains untracked files. Those untracked files are "part of
the stash" and I see no way to get information about their presence
currently.

-- 
Kaartic

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Behaviour of 'git stash show' when a stash has untracked files
@ 2017-09-17  5:27 Kaartic Sivaraam
  2017-09-20  5:33 ` Junio C Hamano
  0 siblings, 1 reply; 9+ messages in thread
From: Kaartic Sivaraam @ 2017-09-17  5:27 UTC (permalink / raw)
  To: git

Some time ago, I stashed a few changes along with untracked files. I
almost forgot it until recently. Then I wanted to see what I change I
had in the stash. So I did a 'git stash show <num>'. It worked fine but
didn't say anything about the untracked files in that stash. That made
me wonder where the untracked files I added went. I then applied the
stash to see that they were still there but weren't listed in show.

I understand that they aren't listed because 'git stash show' is
typically a "diff between the stashed state and its original parent" as
the documentation says but shouldn't there be at least a message that
the stash contains untracked files? Those untracked files are "part of
the stash" and I see no way to get information about their presence
currently.

So, should this behaviour be changed?

-- 
Kaartic

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

end of thread, other threads:[~2017-09-24  0:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-09-17  5:07 Behaviour of 'git stash show' when a stash has untracked files Kaartic Sivaraam
  -- strict thread matches above, loose matches on Subject: below --
2017-09-17  5:27 Kaartic Sivaraam
2017-09-20  5:33 ` Junio C Hamano
2017-09-20 19:36   ` Jeff King
2017-09-21  1:23     ` Junio C Hamano
2017-09-21  3:31       ` Jeff King
2017-09-23  7:11         ` Kaartic Sivaraam
2017-09-24  0:41         ` Junio C Hamano
2017-09-23  7:03     ` Kaartic Sivaraam

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).