<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/read-tree.c, branch v0.99</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v0.99</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v0.99'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2005-06-15T17:25:46Z</updated>
<entry>
<title>git-read-tree: fix "--reset" handling</title>
<updated>2005-06-15T17:25:46Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-15T17:25:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7875b50d1a9928e683299b283bfe94778b6c344e'/>
<id>urn:sha1:7875b50d1a9928e683299b283bfe94778b6c344e</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[PATCH] read-tree: loosen too strict index requirements</title>
<updated>2005-06-13T03:40:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-11T09:53:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=036d51cc557bcf919246ad30cb2ac7736bfc836b'/>
<id>urn:sha1:036d51cc557bcf919246ad30cb2ac7736bfc836b</id>
<content type='text'>
This patch teaches read-tree 3-way merge that, when only "the
other tree" changed a path, and if the index file already has
the same change, we are not in a situation that would clobber
the index and the work tree, and lets the merge succeed; this is
case #14ALT in t1000 test.  It does not change the result of the
merge, but prevents it from failing when it does not have to.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] Finish making --emu23 equivalent to pure 2-way merge.</title>
<updated>2005-06-13T03:40:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-11T09:50:51Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=32192e6622d78347448cfc0572827d6e64e0de28'/>
<id>urn:sha1:32192e6622d78347448cfc0572827d6e64e0de28</id>
<content type='text'>
This adds #3ALT rule (and #2ALT rule for symmetry) to the
read-tree 3-way merge logic that collapses paths that are added
only in one branch and not in the other internally.

This makes --emu23 to succeed in the last remaining case where
the pure 2-way merge succeeded and earlier one failed.  Running
diff between t1001 and t1005 test scripts shows that the only
difference between the two is that --emu23 can leave the states
into separate stages so that the user can use usual 3-way merge
resolution techniques to carry forward the local changes when
pure 2-way merge would have refused to run.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] read-tree: fix too strong index requirement #5ALT</title>
<updated>2005-06-13T03:40:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-11T01:37:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e7f9bc411c8519468c33e1d882fb02cbe9c1ea55'/>
<id>urn:sha1:e7f9bc411c8519468c33e1d882fb02cbe9c1ea55</id>
<content type='text'>
This fixes too strong index requirement 3-way merge enforces in
one case: the same file is added in both branches.

In this case, the original code insisted that if the index file
has that path, it must match our branch and be up-to-date.
However in this particular case, it only has to match it, and
can be dirty.  We just need to make sure that we keep the
work-tree copy instead of checking out the merge result.

The resolution of such a path, however, cannot be left to
outside script, because we will not keep the original stage0
entries for unmerged paths when read-tree finishes, and at that
point, the knowledge of "if we resolve it to match the new file
added in both branches, the merge succeeds and the work tree
would not lose information, but we should _not_ update the work
tree from the resulting index file" is lost.  For this reason,
the now code needs to resolve this case (#5ALT) internally.

This affects some existing tests in the test suite, but all in
positive ways.  In t1000 (3-way test), this #5ALT case now gets
one stage0 entry, instead of an identical stage2 and stage3
entry pair, for such a path, and one test that checked for merge
failure (because the test assumed the "stricter-than-necessary"
behaviour) does not have to fail anymore.  In t1005 (emu23
test), two tests that involves a case where the work tree
already had a change introduced in the upstream (aka "merged
head"), the merge succeeds instead of failing.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] read-tree --emu23.</title>
<updated>2005-06-13T03:40:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-11T01:36:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=03efa6d9a4c974c502dbad457749ad316aac9cc6'/>
<id>urn:sha1:03efa6d9a4c974c502dbad457749ad316aac9cc6</id>
<content type='text'>
This new flag causes two-way fast forward to internally use the
three-way merge mechanism.  This behaviour is intended to offer
a better fast forward semantics when used in a dirty work tree.

The new test t1005 is parallel to the existing t1001 "pure
2-way" tests, but some parts that are commented out would fail.
These failures are due to three-way merge enforcing too strict
index requirements for cases that could succeed.  This problem
will be addressed by later patches.

Without even changing three-way mechanism, the --emu23 two-way
fast forward already gives the user an easier-to-handle merge
result when a file that "merged head" updates has local
modifications.  This is demonstrated as "case 16" test in t1005.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>git-read-tree: remove deleted files in the working directory</title>
<updated>2005-06-09T22:34:04Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-09T22:34:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aa16021efcd969a44b480d0964e07d52167517db'/>
<id>urn:sha1:aa16021efcd969a44b480d0964e07d52167517db</id>
<content type='text'>
Only when "-u" is used of course.
</content>
</entry>
<entry>
<title>git-read-tree: add "--reset" flag</title>
<updated>2005-06-09T19:51:01Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-09T19:51:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=438195ccedce7270cf5ba167a940c90467cb72d7'/>
<id>urn:sha1:438195ccedce7270cf5ba167a940c90467cb72d7</id>
<content type='text'>
This is the same as "-m", but it will silently ignore any unmerged
entries, which makes it useful for efficiently forcing a new position
regardless of the state of the current index file.

IOW, to reset to a previous HEAD (in case you have had a failed
merge, for example), you'd just do

	git-read-tree -u --reset HEAD

which will also update your working tree to the right state.

NOTE! The "update" will not remove files that may have been added by the
merge.  Yet.
</content>
</entry>
<entry>
<title>git-read-tree: -u without -m is meaningless. Don't allow it.</title>
<updated>2005-06-07T22:20:39Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-07T22:20:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a57f0b58d7d4aee2b874ff349e53b9f7ee3aeb54'/>
<id>urn:sha1:a57f0b58d7d4aee2b874ff349e53b9f7ee3aeb54</id>
<content type='text'>
Also, documetn the "-u" in the usage string.
</content>
</entry>
<entry>
<title>git-read-tree: make one-way merge also honor the "update" flag</title>
<updated>2005-06-07T22:17:33Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-07T22:17:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b5b425074e5f84f261b1290b1a83eca635c49147'/>
<id>urn:sha1:b5b425074e5f84f261b1290b1a83eca635c49147</id>
<content type='text'>
It didn't set CE_UPDATE before, so "-u" was a no-op.
</content>
</entry>
<entry>
<title>[PATCH] read-tree: save more user hassles during fast-forward.</title>
<updated>2005-06-07T18:41:51Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-07T18:36:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c859600954df4c292ec7c81d7f2f9d0a62b5975b'/>
<id>urn:sha1:c859600954df4c292ec7c81d7f2f9d0a62b5975b</id>
<content type='text'>
This implements the "never lose the current cache information or
the work tree state, but favor a successful merge over merge
failure" principle in the fast-forward two-tree merge operation.

It comes with a set of tests to cover all the cases described in
the case matrix found in the new documentation.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
