<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-mergetool.sh, branch v2.8.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.8.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.8.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-03-10T22:07:57Z</updated>
<entry>
<title>mergetool: honor tempfile configuration when resolving delete conflicts</title>
<updated>2016-03-10T22:07:57Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2016-03-10T07:13:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a2986045e3da24c850da03eaf2f2e2a56f8d4fff'/>
<id>urn:sha1:a2986045e3da24c850da03eaf2f2e2a56f8d4fff</id>
<content type='text'>
Teach resolve_deleted_merge() to honor the mergetool.keepBackup and
mergetool.keepTemporaries configuration knobs.

This ensures that the worktree is kept pristine when resolving deletion
conflicts with the variables both set to false.

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool: support delete/delete conflicts</title>
<updated>2016-03-10T22:07:13Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2016-03-10T07:13:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=faaab8d571633fc8d98f58f02862f1d0bfa988f7'/>
<id>urn:sha1:faaab8d571633fc8d98f58f02862f1d0bfa988f7</id>
<content type='text'>
If two branches each move a file into different directories then
mergetool will fail because it assumes that the file being merged, and
its parent directory, are present in the worktree.

Create the merge file's parent directory to allow using the
deleted base version of the file for merge resolution when
encountering a delete/delete conflict.

The end result is that a delete/delete conflict is presented for the
user to resolve.

Reported-by: Joe Einertson &lt;joe@kidblog.org&gt;
Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool--lib: set IFS for difftool and mergetool</title>
<updated>2015-05-20T20:13:42Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2015-05-20T09:07:22Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=719518f5cebba0fb4ed6caf6d92d683e858120f0'/>
<id>urn:sha1:719518f5cebba0fb4ed6caf6d92d683e858120f0</id>
<content type='text'>
git-sh-setup sets IFS but it is not used by git-difftool--helper.
Set IFS in git-mergetool--lib so that the mergetool scriptlets,
difftool, and mergetool do not need to do so.

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool: simplify conditionals</title>
<updated>2014-11-21T19:27:53Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2014-11-21T01:20:29Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=98a260220c9b464dbefce1a23e4c89ed7b6ccb4d'/>
<id>urn:sha1:98a260220c9b464dbefce1a23e4c89ed7b6ccb4d</id>
<content type='text'>
Combine the $last_status checks into a single conditional.
Replace $last_status and $rollup_status with a single variable.

Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'da/mergetool-temporary-directory'</title>
<updated>2014-10-21T20:28:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-21T20:28:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a46af5946c3ec125e0c2fee889610485eb4a6e14'/>
<id>urn:sha1:a46af5946c3ec125e0c2fee889610485eb4a6e14</id>
<content type='text'>
Allow a temporary directory specified to be used while running "git
mergetool" backend.

* da/mergetool-temporary-directory:
  t7610-mergetool: add test cases for mergetool.writeToTemp
  mergetool: add an option for writing to a temporary directory
</content>
</entry>
<entry>
<title>Merge branch 'da/mergetool-tool-help'</title>
<updated>2014-10-21T20:28:37Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-21T20:28:37Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e96e98b3399ae4c638466f84068fe94d4712c5a3'/>
<id>urn:sha1:e96e98b3399ae4c638466f84068fe94d4712c5a3</id>
<content type='text'>
Allow "git mergetool --help" to run outside a Git repository.

* da/mergetool-tool-help:
  difftool: don't assume that default sh is sane
  mergetool: don't require a work tree for --tool-help
  git-sh-setup: move GIT_DIR initialization into a function
  mergetool: use more conservative temporary filenames
  test-lib-functions: adjust style to match CodingGuidelines
  t7610-mergetool: prefer test_config over git config
</content>
</entry>
<entry>
<title>Merge branch 'da/mergetool-temporary-filename'</title>
<updated>2014-10-21T20:28:20Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-21T20:28:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=02f4db83bd979fe33f18006fa612d7d5ab1d2470'/>
<id>urn:sha1:02f4db83bd979fe33f18006fa612d7d5ab1d2470</id>
<content type='text'>
Tweak the names of the three throw-away files "git mergetool" comes
up with to feed the merge tool backend, so that a file with a
single dot in its name in the original (e.g. "hello.c") will have
only one dot in these variants (e.g. "hello_BASE_4321.c").

* da/mergetool-temporary-filename:
  mergetool: use more conservative temporary filenames
</content>
</entry>
<entry>
<title>mergetool: add an option for writing to a temporary directory</title>
<updated>2014-10-16T19:09:51Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2014-10-11T17:04:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8f0cb41da26c1e20cfbcfded030d6539464b132e'/>
<id>urn:sha1:8f0cb41da26c1e20cfbcfded030d6539464b132e</id>
<content type='text'>
Teach mergetool to write files in a temporary directory when
'mergetool.writeToTemp' is true.

This is helpful for tools such as Eclipse which cannot cope with
multiple copies of the same file in the worktree.

Suggested-by: Charles Bailey &lt;charles@hashpling.org&gt;
Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool: use more conservative temporary filenames</title>
<updated>2014-10-16T19:07:48Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2014-10-10T08:19:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=eab335c46d6677ff50e9fe94352150641bc05507'/>
<id>urn:sha1:eab335c46d6677ff50e9fe94352150641bc05507</id>
<content type='text'>
Avoid filenames with multiple dots so that overly-picky tools do
not misinterpret their extension.

Previously, foo/bar.ext in the worktree would result in e.g.

	./foo/bar.ext.BASE.1234.ext

This can be improved by having only a single .ext and using
underscore instead of dot so that the extension cannot be
misinterpreted.  The resulting path becomes:

	./foo/bar_BASE_1234.ext

Suggested-by: Sergio Ferrero &lt;sferrero@ensoftcorp.com&gt;
Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>difftool: don't assume that default sh is sane</title>
<updated>2014-10-15T21:12:20Z</updated>
<author>
<name>Charles Bailey</name>
<email>cbailey32@bloomberg.net</email>
</author>
<published>2014-10-11T08:39:38Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=4fb4b02d98310f4f859f7d52f57f36d49198be5c'/>
<id>urn:sha1:4fb4b02d98310f4f859f7d52f57f36d49198be5c</id>
<content type='text'>
git-difftool used to create a command list script containing $( ... )
and explicitly calls "sh -c" with this list.

Instead, allow mergetool --tool-help to take a mode parameter and call
mergetool directly to invoke the show_tool_help function. This mode
parameter is intented for use solely by difftool.

Signed-off-by: Charles Bailey &lt;cbailey32@bloomberg.net&gt;
Helped-by: John Keeping &lt;john@keeping.me.uk&gt;
Signed-off-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
