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

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

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 16, 2020, 19:17 UTC
Message-ID
<xmqq1rfp4l35.fsf@gitster.c.googlers.com>
In-Reply-To
<CAHMHMxW_zwq_xK3Mh5QjC4dM1muVotESZdGQkRAx8xeKYmHzbw@mail.gmail.com>
Σταύρος Ντέντος  <stdedos@gmail.com> writes:
Show 9 quoted lines
> 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.
Hmph, is this the same issue as what we discussed in
https://lore.kernel.org/git/CA+dzEBmh4LdN-XFS9y9YKrDMzV_7+QpDzBA2uv9Xi80PgR5NTQ@mail.gmail.com/
I wonder.
Previous: Σταύρος ΝτέντοςNext: Σταύρος Ντέντος
Message 2 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.