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
ΣΝΣταύρος Ντέντος <stdedos@gmail.com>
Date
Dec 17, 2020, 08:43 UTC
Message-ID
<CAHMHMxUdt1cxE1UkjbjUxpL=4fcjrE64udR6YJidbzLJS0ca2w@mail.gmail.com>
In-Reply-To
<xmqq1rfp4l35.fsf@gitster.c.googlers.com>
It seems like it, yes.

Not deciding to fix that (or not agreeing on how to fix it), should be orthogonal from the "what does the error message says" about it. I would expect something like "'xyz' is marked with intent-to-add; either stage (git add xyz) or remove the file (git ... xyz); refusing to stage."

With regards, Ntentos Stavros

On Wed, 16 Dec 2020 at 21:17, Junio C Hamano <gitster@pobox.com> wrote:
Show 18 quoted lines
>
> Σταύρος Ντέντος  <stdedos@gmail.com> writes:
>
> > 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: Junio C HamanoNext: Junio C Hamano
Message 3 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.