All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kaartic Sivaraam <kaarticsivaraam91196@gmail.com>
To: git@vger.kernel.org
Subject: Behaviour of 'git stash show' when a stash has untracked files
Date: Sun, 17 Sep 2017 10:37:35 +0530	[thread overview]
Message-ID: <1505624855.9625.4.camel@gmail.com> (raw)

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

             reply	other threads:[~2017-09-17  5:28 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-17  5:07 Kaartic Sivaraam [this message]
  -- strict thread matches above, loose matches on Subject: below --
2017-09-17  5:27 Behaviour of 'git stash show' when a stash has untracked files 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1505624855.9625.4.camel@gmail.com \
    --to=kaarticsivaraam91196@gmail.com \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.