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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx> wrote:
>
> Σταύρος Ντέντος  <stdedos@xxxxxxxxx> 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@xxxxxxxxxxxxxx/
>
> I wonder.




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux