From: Junio C Hamano <junkio@cox.net>
To: Daniel Barkalow <barkalow@iabervon.org>
Cc: git@vger.kernel.org
Subject: Re: Couple of read-tree questions
Date: Wed, 31 Aug 2005 22:16:07 -0700 [thread overview]
Message-ID: <7vll2h4bc8.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <Pine.LNX.4.63.0509010009350.23242@iabervon.org> (Daniel Barkalow's message of "Thu, 1 Sep 2005 00:17:18 -0400 (EDT)")
Daniel Barkalow <barkalow@iabervon.org> writes:
> Is there any current use for read-tree with multiple trees without -m or
> equivalent?
I did not know it even allowed multiple trees without -m, but
you are right. It does not seem to complain.
I have never thought about using multiple trees without -m, and
I do not remember hearing any plan nor purpose of using it to do
something interesting from Linus. I think its allowing multiple
trees without -m is simply a bug.
> Why does --emu23 use I+H for stage 2, rather than just I? Wouldn't this
> just reintroduce removed files?
They are not "removed files", at least in the original context.
The original intention was that git was supposed to work without
having _any_ files in the working tree. The reason why
multi-tree read-tree has so many special cases that says "must
match *if* work file exists", is that not having a corresponding
working file was supposed to be equivalent to having the file
checked out *and* unmodified.
That assumption and design goal was partially broken at around
the beginning of June when we started touching working tree
during a merge. Until that timeframe, we did not touch (nor
even look at) files in the working tree during the merge, mainly
due to the desire of performing the merge operation entirely in
the cache (which was the name of "index file" back then).
I do not think anybody currently uses --emu23. I did it because
it has a potential of making the two-tree fast forward (which is
used in "git checkout" to switch between branches) easier to
manage when the working tree is dirty than doing straight
two-tree merge, but that is just a theoretical potential never
tested in the field. Frankly, I do not mind, and I do not think
anybody else minds, too much if you need to break or remove
emu23 if that would make your code clean-up and redoing
read-tree easier.
next prev parent reply other threads:[~2005-09-01 5:16 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-01 4:17 Couple of read-tree questions Daniel Barkalow
2005-09-01 5:16 ` Junio C Hamano [this message]
2005-09-01 5:52 ` Junio C Hamano
2005-09-01 6:16 ` Daniel Barkalow
2005-09-01 6:32 ` Junio C Hamano
2005-09-01 7:10 ` Reworked read-tree Junio C Hamano
2005-09-01 15:55 ` Daniel Barkalow
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7vll2h4bc8.fsf@assigned-by-dhcp.cox.net \
--to=junkio@cox.net \
--cc=barkalow@iabervon.org \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.