git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Fwd: Bug in `git add -N xyz ; git stash` command

From
ΣΝΣταύρος Ντέντος <stdedos@gmail.com>
Date
Dec 16, 2020, 10:48 UTC
Message-ID
<CAHMHMxW_zwq_xK3Mh5QjC4dM1muVotESZdGQkRAx8xeKYmHzbw@mail.gmail.com>
In-Reply-To
<CAHMHMxW-LwjLWF9PPuSJmbAafw37d_18j+HmOd4+8MKbajb_8A@mail.gmail.com>
Hello there,
I think I have found a bug with the following series of commands:

$ git add -N xyz ; git stash error: Entry 'xyz' not uptodate. Cannot merge. Cannot save the current worktree state

It has bothered me that `git add -N xyz` "is not obvious that it is done", unless you know that you did it - and now it seems that there is some buggy behavior about that. I could've sworn that there is not even a file change on the repository (because I sync it between a VM, and after a `git pull` I saw 3 file changes, two of them being the branch head and the log branch head)

With regards, Ntentos Stavros

---------- Forwarded message ---------
From: Σταύρος Ντέντος <stdedos@gmail.com>
Date: Wed, 16 Dec 2020 at 12:32
Subject: Bug in `git add -N xyz ; git stash` command
To: git <git@vger.kernel.org>
Hello there,
I think I have found a bug with the following series of commands:

$ git add -N xyz ; git stash error: Entry 'xyz' not uptodate. Cannot merge. Cannot save the current worktree state

It has bothered me that `git add -N xyz` "is not obvious that it is done", unless you know that you did it - and now it seems that there is some buggy behavior about that. I could've sworn that there is not even a file change on the repository (because I sync it between a VM, and after a `git pull` I saw 3 file changes, two of them being the branch head and the log branch head)

With regards, Ntentos Stavros

Next: Junio C Hamano
Message 1 of 4 in “Fwd: Bug in `git add -N xyz ; git stash` command”
  1. Σταύρος ΝτέντοςDec 16, 2020
  2. Junio C HamanoDec 16, 2020
  3. Σταύρος ΝτέντοςDec 17, 2020
  4. Junio C HamanoDec 17, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.