Re: Untracked working tree files

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Andrew Morton <akpm@...>, <david@...>, Git Mailing List <git@...>
Date: Wednesday, October 15, 2008 - 6:06 pm

Linus Torvalds <torvalds@linux-foundation.org> writes:


I'd agree that dropping unmerged entries to stage-0 when we can would make
sense.  An conflicted existing path would get an stage-0 entry in the
index, which is compared with the switched-to HEAD (which could be the
same as the current one when "git reset --hard" is run without a rev), we
notice that they are different and the index entry and the work tree path
is overwritten by the version from the switched-to HEAD.  For a new path
that a failed merge tried to bring in, we notice that the switched-to HEAD
does not have that path and happily remove it from the index and from the
work tree.  All will go a lot smoother than the current code.

I am not sure what should happen when we can't drop the unmerged entry
down to stage-0 due to D/F conflicts, though.  IIRC, read-tree proper
would not touch the work tree in such a case, but merge-recursive creates
our and their versions with funny suffixes, which will not be known to the
index and will be left in the working tree.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Untracked working tree files, Andrew Morton, (Wed Oct 15, 2:56 pm)
Re: Untracked working tree files, , (Wed Oct 15, 3:09 pm)
Re: Untracked working tree files, , (Wed Oct 15, 3:14 pm)
Re: Untracked working tree files, Linus Torvalds, (Wed Oct 15, 3:31 pm)
Re: Untracked working tree files, Andrew Morton, (Wed Oct 15, 3:49 pm)
Re: Untracked working tree files, Linus Torvalds, (Wed Oct 15, 4:08 pm)
Re: Untracked working tree files, Linus Torvalds, (Wed Oct 15, 4:23 pm)
Re: Untracked working tree files, Junio C Hamano, (Wed Oct 15, 6:06 pm)
Re: Untracked working tree files, Andrew Morton, (Wed Oct 15, 4:30 pm)
Re: Untracked working tree files, Andrew Morton, (Wed Oct 15, 4:23 pm)
Re: Untracked working tree files, Paolo Ciarrocchi, (Thu Oct 16, 4:42 am)
Re: Untracked working tree files, Andrew Morton, (Thu Oct 16, 5:32 am)
Re: Untracked working tree files, , (Wed Oct 15, 3:42 pm)
Re: Untracked working tree files, Linus Torvalds, (Wed Oct 15, 3:56 pm)
Re: Untracked working tree files, , (Wed Oct 15, 4:17 pm)
Re: Untracked working tree files, Andrew Morton, (Wed Oct 15, 3:26 pm)
Re: Untracked working tree files, Nicolas Pitre, (Wed Oct 15, 3:32 pm)
Re: Untracked working tree files, Nicolas Pitre, (Wed Oct 15, 3:34 pm)
Re: Untracked working tree files, Andrew Morton, (Wed Oct 15, 3:24 pm)