From: "Nikodemus Siivola" <nikodemus@random-state.net>
To: git@vger.kernel.org
Subject: git stash usage
Date: Thu, 6 Sep 2007 17:20:13 +0300 [thread overview]
Message-ID: <6bcc356f0709060720x257aff95x783463c5b23f0b7a@mail.gmail.com> (raw)
I'm not sure if I understand git-stash correctly.
...work...
git stash
...quick fix & commit...
git stash apply
...more work...
is my understanding of the normal workflow. If this is
correct, why does "apply" leave the stash in the list
of stashes?
mkdir git-stash-test
cd git-stash-test
git init
echo foo > save-apply-test.txt
git add save-apply-test.txt
git commit -m "foo"
echo bar > save-apply-test.txt
git stash
echo quux > save-apply-test.txt
git commit -a -m "quux"
git stash apply
git commit -a -m "bar"
# I would expect the list to be empty now, but it isn't.
git stash list
Is this intentional?
It's a bit inconvenient, especially considering that
"clear" removes all the stashes.
I can easily accumulate several stashes, some of which
are applied and some of which are not -- but have no
way to easily know which are which.
Cheers,
-- Nikodemus
reply other threads:[~2007-09-06 14:20 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6bcc356f0709060720x257aff95x783463c5b23f0b7a@mail.gmail.com \
--to=nikodemus@random-state.net \
--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.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
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 read-only IMAP folder(s) and NNTP newsgroup(s).