[BUG] git stash refuses to save after "add -N"
- From
- Yann Dirson <ydirson@linagora.com>
- Date
- Aug 28, 2009, 11:02 UTC
- Message-ID
- <54e098c45bffbf870bdfcee26b9ddecc.squirrel@intranet.linagora.com>
$ echo foo > bar $ git add -N bar $ ./git --exec-path=$PWD stash save bar: not added yet fatal: git-write-tree: error building trees Cannot save the current index state
Maybe it would require some magic in git-stash to detect/save/restore that particular state, or "just" to cause "add -N" to insert an empty file instead ?
I suspect that second solution would not be particularly popular, but I don't find the 1st one very appealing, it just looks like breaking the whole idea behind git-stash :)