Re: error(?) in "man git-stash" regarding "--keep-index"
- From
- Sybille Peters <sypets@gmx.de>
- Date
- May 18, 2018, 15:37 UTC
- Message-ID
- <96486abe-cf13-ef10-7513-2d6c20a9dc1e@gmx.de>
- 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/