git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [BUG] git stash refuses to save after "add -N"
@ 2009-08-28 11:02 Yann Dirson
  2009-08-28 19:05 ` Jeff King
  0 siblings, 1 reply; 11+ messages in thread
From: Yann Dirson @ 2009-08-28 11:02 UTC (permalink / raw)
  To: git

$ 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 :)

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2009-08-31  8:16 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-28 11:02 [BUG] git stash refuses to save after "add -N" Yann Dirson
2009-08-28 19:05 ` Jeff King
2009-08-28 19:22   ` Jeff King
2009-08-29 22:34   ` Junio C Hamano
2009-08-30  9:55     ` Jeff King
2009-08-30 20:01       ` Junio C Hamano
2009-08-31  4:27         ` Jeff King
2009-08-31  5:03           ` Junio C Hamano
2009-08-31  5:05             ` Jeff King
2009-08-31  8:16               ` Yann Dirson
2009-08-31  4:36         ` Jeff King

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 NNTP newsgroup(s).