git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git add -N vs. git stash
@ 2022-08-08 16:39 Uwe Kleine-König
  2022-08-08 17:30 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: Uwe Kleine-König @ 2022-08-08 16:39 UTC (permalink / raw)
  To: git; +Cc: Jakub Wilk

[-- Attachment #1: Type: text/plain, Size: 554 bytes --]

Hello,

somehow git stash doesn't understand the index after git add -N:

	$ git version
	git version 2.36.1

	$ git init -q

	$ echo foo > foo

	$ git add foo

	$ git commit -a -m .
	[main (root-commit) 0e4b48cb4913] .
	 1 file changed, 1 insertion(+)
	 create mode 100644 foo

	$ echo bar > bar

	$ git add -N bar

	$ git stash push
	error: Entry 'bar' not uptodate. Cannot merge.
	Cannot save the current worktree state

I'd say that's not a feature, is it?

I would have expected the last command to just remove bar from the
index.

Best regards
Uwe

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

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

end of thread, other threads:[~2022-08-08 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-08 16:39 git add -N vs. git stash Uwe Kleine-König
2022-08-08 17:30 ` Junio C Hamano

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).