From: Sybille Peters <sypets@gmx.de>
To: Git Mailing list <git@vger.kernel.org>
Subject: Re: error(?) in "man git-stash" regarding "--keep-index"
Date: Fri, 18 May 2018 17:37:44 +0200 [thread overview]
Message-ID: <96486abe-cf13-ef10-7513-2d6c20a9dc1e@gmx.de> (raw)
In-Reply-To: <CAN0heSpVKd=-Dpdk09LVtTd0vC2dLUwg0=hbxhKskM3RencsYA@mail.gmail.com>
My 2c on this:
1) "If the --keep-index option is used, all changes already added to the
index are left intact" (manpage git stash)
That appears to be correct and clear
2) "$ git stash push --keep-index # save *all other* changes to the
stash" (manpage git stash)
That is either not correct or misleading. "All other" implies in my
opinion all changes
except the ones that were already added. *"All changes including already
staged changes"*
might be a better choice.
Please also see open question on StackOverflow:
https://stackoverflow.com/questions/50242489/how-to-ignore-added-hunks-in-git-stash-p/
next prev parent reply other threads:[~2018-05-18 15:37 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-18 9:37 error(?) in "man git-stash" regarding "--keep-index" Robert P. J. Day
2018-05-18 10:41 ` Martin Ågren
2018-05-18 10:51 ` Robert P. J. Day
2018-05-18 12:25 ` Martin Ågren
2018-05-18 15:37 ` Sybille Peters [this message]
2018-05-18 15:43 ` Robert P. J. Day
2018-05-18 17:14 ` Martin Ågren
2018-05-19 10:05 ` Sybille Peters
2018-05-18 20:24 ` Robert P. J. Day
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=96486abe-cf13-ef10-7513-2d6c20a9dc1e@gmx.de \
--to=sypets@gmx.de \
--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).