<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-merge-one-file-script, branch master</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=master</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2005-09-08T00:45:20Z</updated>
<entry>
<title>Big tool rename.</title>
<updated>2005-09-08T00:45:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-09-08T00:26:23Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7'/>
<id>urn:sha1:215a7ad1ef790467a4cd3f0dcffbd6e5f04c38f7</id>
<content type='text'>
As promised, this is the "big tool rename" patch.  The primary differences
since 0.99.6 are:

  (1) git-*-script are no more.  The commands installed do not
      have any such suffix so users do not have to remember if
      something is implemented as a shell script or not.

  (2) Many command names with 'cache' in them are renamed with
      'index' if that is what they mean.

There are backward compatibility symblic links so that you and
Porcelains can keep using the old names, but the backward
compatibility support  is expected to be removed in the near
future.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Make "git resolve" less scary</title>
<updated>2005-08-30T05:55:42Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-08-30T05:36:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=cdcb0ed411021cf8a8db047667e5ae18c4378ec0'/>
<id>urn:sha1:cdcb0ed411021cf8a8db047667e5ae18c4378ec0</id>
<content type='text'>
When we resolve a merge between two branches, and it removes a file in the
current branch, we notify the person doing the resolve with a big nice
notice like

	Removing xyzzy

which is all well and good.

HOWEVER, we also do this when the file was actually removed in the current
branch, and we're merging with another branch that didn't have it removed
(or, indeed, if the other branch _did_ have it removed, but the common
parent was far enough back that the file still existed in there).

And that just doesn't make sense. In that case we're not removing
anything: the file didn't exist in the branch we're merging into in the
first place. So the message just makes people nervous, and makes no sense.

This has been around forever, but I never bothered to do anything about
it.

Until now.

The trivial fix is to only talk about removing files if the file existed
in the branch we're merging into, but will not exist in the result.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Trivial tidyups</title>
<updated>2005-07-30T00:21:49Z</updated>
<author>
<name>Petr Baudis</name>
<email>pasky@suse.cz</email>
</author>
<published>2005-07-29T09:00:45Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e'/>
<id>urn:sha1:0b124bb4bf8eafae8a4eae9c1fc44bf63da2e62e</id>
<content type='text'>
Simple whitespace-related tidyups ensuring style consistency.

This is carried over from my old git-pb branch.

Signed-off-by: Petr Baudis &lt;pasky@ucw.cz&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<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://www.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://www.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://www.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://www.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://www.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://www.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://www.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>
</feed>
