<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-merge-one-file-script, 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-25T23:52:16Z</updated>
<entry>
<title>[PATCH] git-merge-one-file-script: do not misinterpret rm failure.</title>
<updated>2005-06-25T23:52:16Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-06-25T09:24:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=aacc15ec5261fca8a02570f93028e3ac4213caae'/>
<id>urn:sha1:aacc15ec5261fca8a02570f93028e3ac4213caae</id>
<content type='text'>
When a merge adds a file DF and removes a directory there by
deleting a path DF/DF, git-merge-one-file-script can be called
for the removal of DF/DF when the path DF is already created by
"git-read-tree -m -u".  When this happens, we get confused by a
failure return from 'rm -f -- "$4"' (where $4 is DF/DF); finding
file DF there the "rm -f" command complains that DF is not a
directory.

What we want to ensure is that there is no file DF/DF in this
case. Avoid getting ourselves confused by first checking if
there is a file, and only then try to remove it (and check for
failure from the "rm" command).

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>One more time.. Clean up git-merge-one-file-script</title>
<updated>2005-06-09T00:56:09Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-09T00:56:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=98a96b00b88ee35866cd0b1e94697db76bd5ddf9'/>
<id>urn:sha1:98a96b00b88ee35866cd0b1e94697db76bd5ddf9</id>
<content type='text'>
This uses git-checkout-file to make sure that the full pathname is
created, instead of the script having to verify it by hand.  Also,
simplify the 3-way merge case by just writing to the right file and
setting the initial index contents early.
</content>
</entry>
<entry>
<title>Fix up git-merge-one-file-script</title>
<updated>2005-06-09T00:36:47Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-09T00:36:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e0226add28e53a35ce91cdbebb1919519f02b291'/>
<id>urn:sha1:e0226add28e53a35ce91cdbebb1919519f02b291</id>
<content type='text'>
Junio points out that we may need to create the path leading
up the the file we merge.

And we need to be more careful with the "exec"s we've done
to exit on success - only do the on the last command in the
pipeline, not the first one ;)
</content>
</entry>
<entry>
<title>Merge my and Petr's git-merge-one-file-script modifications</title>
<updated>2005-06-08T23:54:23Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-08T23:54:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=566487c8a617c12d68bf22c7078bce0b94fc8121'/>
<id>urn:sha1:566487c8a617c12d68bf22c7078bce0b94fc8121</id>
<content type='text'>
</content>
</entry>
<entry>
<title>[PATCH] git-merge-one-file-script cleanups from Cogito</title>
<updated>2005-06-08T23:51:26Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@ucw.cz</email>
</author>
<published>2005-06-08T23:38:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec73962d8e17e89ac0c4b21f07cefe16594e07a2'/>
<id>urn:sha1:ec73962d8e17e89ac0c4b21f07cefe16594e07a2</id>
<content type='text'>
Chain the resolving sequences (e.g. git-cat-file - chmod -
git-update-cache) through &amp;&amp;s so we stop right away in case one of the
command fails, and report the error code to the script caller.

Also add a copyright notice, some blank lines, ;; on a separate line,
and nicer error messages.

Signed-off-by: Petr Baudis &lt;pasky@ucw.cz&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Make sure we error out if we can't remove a file on automatic merges.</title>
<updated>2005-06-08T23:35:30Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-08T23:35:30Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae3858e7e9146208f1608445975e2761c9b0482e'/>
<id>urn:sha1:ae3858e7e9146208f1608445975e2761c9b0482e</id>
<content type='text'>
Pointed out by Junio.
</content>
</entry>
<entry>
<title>[PATCH] Fix git-merge-one-file permissions auto-merging</title>
<updated>2005-06-08T22:54:45Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@ucw.cz</email>
</author>
<published>2005-06-08T21:26:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8544a6f1b8e7340924c406d717ac37becd2f6046'/>
<id>urn:sha1:8544a6f1b8e7340924c406d717ac37becd2f6046</id>
<content type='text'>
In the automerge case, permissions were not restored properly after the
merge tool was invoked and overwrote the target file.

Signed-off-by: Petr Baudis &lt;pasky@ucw.cz&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Leave merge failures in the filesystem</title>
<updated>2005-06-08T18:40:59Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-08T18:40:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2a68a8659f7dc55fd285d235ae2d19e7a8116c30'/>
<id>urn:sha1:2a68a8659f7dc55fd285d235ae2d19e7a8116c30</id>
<content type='text'>
This changes how we handle merges: if a automated merge
fails, we will leave the index as a clean entry pointing
to the original branch, and leave the actual file _dirty_
the way the "merge" program left it.

You can then just do "git-diff-files -p" to see what the
merge conflicts did, fix them up, and commit the end result.

NOTE NOTE NOTE! Do _not_ use "git commit" to commit such
a merge. It won't set the parents right. I'll need to fix
that. In the meantime, you'd need to merge using

	git-commit-tree $(git-write) -p HEAD -p MERGE_HEAD

or something like that by hand.
</content>
</entry>
<entry>
<title>Use backticks in git-merge-one-file-script instead of $(command).</title>
<updated>2005-05-07T19:26:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-07T19:26:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c7d1d4e1b50a60abfec5c5daaeb104bc9838b44c'/>
<id>urn:sha1:c7d1d4e1b50a60abfec5c5daaeb104bc9838b44c</id>
<content type='text'>
Thomas Glanzmann says that shell he uses on Solaris cannot grok
$(command) but the script does not use nested $(command) and 
works happily just by using backticks instead.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Update git-merge-one-file-script.</title>
<updated>2005-05-02T06:53:32Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-05-02T06:53:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ee28152d03f2cf4b5e3ebc25f7f03f9654d3aa0d'/>
<id>urn:sha1:ee28152d03f2cf4b5e3ebc25f7f03f9654d3aa0d</id>
<content type='text'>
With this change, git-merge-one-file-script ceases to smudge
files in the work tree when recording the trivial merge results
(conflicting auto-merge failure case does not touch the work
tree file as before).

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