<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git-mergetool.sh, branch v1.7.9.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://www.git.shady.money/git/atom?h=v1.7.9.2</id>
<link rel='self' href='https://www.git.shady.money/git/atom?h=v1.7.9.2'/>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/'/>
<updated>2012-01-23T19:50:22Z</updated>
<entry>
<title>mergetool: Provide an empty file when needed</title>
<updated>2012-01-23T19:50:22Z</updated>
<author>
<name>David Aguilar</name>
<email>davvid@gmail.com</email>
</author>
<published>2012-01-20T07:47:35Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ec245ba04944473ba6657a826643ef90ed02b51d'/>
<id>urn:sha1:ec245ba04944473ba6657a826643ef90ed02b51d</id>
<content type='text'>
Some merge tools cannot cope when $LOCAL, $BASE, or $REMOTE are missing.
$BASE can be missing when two branches independently add the same
filename.

Provide an empty file to make these tools happy.

When a delete/modify conflict occurs, $LOCAL and $REMOTE can also be
missing. We have special case code to handle such case so this change
may not affect that codepath, but try to be consistent and create an
empty file for them anyway.

Reported-by: Jason Wenger &lt;jcwenger@gmail.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>Merge branch 'jm/mergetool-pathspec'</title>
<updated>2011-10-10T22:56:18Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-10-10T22:56:18Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=5fbdb9c2e8cc7226d9a9e7de5ad09ac5f0a0b906'/>
<id>urn:sha1:5fbdb9c2e8cc7226d9a9e7de5ad09ac5f0a0b906</id>
<content type='text'>
* jm/mergetool-pathspec:
  mergetool: no longer need to save standard input
  mergetool: Use args as pathspec to unmerged files
</content>
</entry>
<entry>
<title>mergetool: no longer need to save standard input</title>
<updated>2011-09-26T16:39:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-09-16T20:19:33Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6d9990a959c0168ab6dfe75236980f95ac512ce5'/>
<id>urn:sha1:6d9990a959c0168ab6dfe75236980f95ac512ce5</id>
<content type='text'>
Earlier code wanted to run merge_file and prompt_after_failed_merge
both of which wanted to read from the standard input of the entire
script inside a while loop, which read from a pipe, and in order to
do so, it redirected the original standard input to another file
descriptor. We no longer need to do so after the previous change.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool: Use args as pathspec to unmerged files</title>
<updated>2011-09-26T16:39:36Z</updated>
<author>
<name>Jonathon Mah</name>
<email>me@JonathonMah.com</email>
</author>
<published>2011-09-16T02:12:10Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=3e8e691abe4e1cce73a8a2ef413dada0278e7b3b'/>
<id>urn:sha1:3e8e691abe4e1cce73a8a2ef413dada0278e7b3b</id>
<content type='text'>
Mergetool now treats its path arguments as a pathspec (like other git
subcommands), restricting action to the given files and directories.
Files matching the pathspec are filtered so mergetool only acts on
unmerged paths; previously it would assume each path argument was in an
unresolved state, and get confused when it couldn't check out their
other stages.

Running "git mergetool subdir" will prompt to resolve all conflicted
blobs under subdir.

Signed-off-by: Jonathon Mah &lt;me@JonathonMah.com&gt;
Acked-by: David Aguilar &lt;davvid@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-mergetool: check return value from read</title>
<updated>2011-09-20T00:41:49Z</updated>
<author>
<name>Jay Soffian</name>
<email>jaysoffian@gmail.com</email>
</author>
<published>2011-09-19T23:40:52Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=e622f41dcd97861796c7529712170f9eae07dc56'/>
<id>urn:sha1:e622f41dcd97861796c7529712170f9eae07dc56</id>
<content type='text'>
Mostly fixed already by 6b44577 (mergetool: check return value
from read, 2011-07-01). Catch two uses it missed.

Signed-off-by: Jay Soffian &lt;jaysoffian@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool: check return value from read</title>
<updated>2011-07-01T23:17:29Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2011-07-01T23:11:16Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=6b445773b78544032262b897c9aa3b5bd4405dd3'/>
<id>urn:sha1:6b445773b78544032262b897c9aa3b5bd4405dd3</id>
<content type='text'>
The process may not even have the standard input open in which case it
will get stuck in an infinite loop to prompt and read nothing.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool: Teach about submodules</title>
<updated>2011-04-13T19:21:45Z</updated>
<author>
<name>Jonathon Mah</name>
<email>me@JonathonMah.com</email>
</author>
<published>2011-04-13T10:00:48Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=ff7f089ed1064b6a10e958bf405f828226262424'/>
<id>urn:sha1:ff7f089ed1064b6a10e958bf405f828226262424</id>
<content type='text'>
When the index has conflicted submodules, mergetool used to mildly
clobber the module, renaming it to mymodule.BACKUP.nnnn, then failing to
copy it non-recursively.

Recognize submodules and offer a resolution instead:

  Submodule merge conflict for 'Shared':
    {local}: submodule commit ad9f12e3e6205381bf2163a793d1e596a9e211d0
    {remote}: submodule commit f5893fb70ec5646efcd9aa643c5136753ac89253
  Use (l)ocal or (r)emote, or (a)bort?

Selecting a commit will stage it, but not update the submodule (as git
does had there been no conflict). Type changes are also supported,
should the path be a submodule on one side, and a file, symlink,
directory, or deleted on the other.

Signed-off-by: Jonathon Mah &lt;me@JonathonMah.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>mergetool: don't skip modify/remove conflicts</title>
<updated>2011-02-16T21:21:09Z</updated>
<author>
<name>Martin von Zweigbergk</name>
<email>martin.von.zweigbergk@gmail.com</email>
</author>
<published>2011-02-16T10:47:45Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=2f59c947044d535e078941711e562d825eb055e3'/>
<id>urn:sha1:2f59c947044d535e078941711e562d825eb055e3</id>
<content type='text'>
Since bb0a484 (mergetool: Skip autoresolved paths, 2010-08-17),
mergetool uses different ways of figuring out the list of files with
merge conflicts depending on whether rerere is active. If rerere is
active, mergetool will use 'git rerere status' to list the files with
remaining conflicts. However, the output from that command does not
list conflicts of types that rerere does not handle, such as
modify/remove conflicts.

Another problem with solely relying on the output from 'git rerere
status' is that, for new conflicts that are not yet known to rerere,
the output from the command will list the files even after adding them
to the index. This means that if the conflicts in some files have been
resolved and 'git mergetool' is run again, it will ask the user
something like the following for each of those files.

 file1: file does not need merging
 Continue merging other unresolved paths (y/n) ?

Solve both of these problems by replacing the call to 'git rerere
status' with a call to the new 'git rerere remaining' that was
introduced in the previous commit.

Signed-off-by: Martin von Zweigbergk &lt;martin.von.zweigbergk@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cb/maint-mergetool-no-tty'</title>
<updated>2010-09-03T16:43:44Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2010-09-03T16:43:44Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=1998f4c0966871d49ebf7f720dc58eb9f80771e9'/>
<id>urn:sha1:1998f4c0966871d49ebf7f720dc58eb9f80771e9</id>
<content type='text'>
* cb/maint-mergetool-no-tty:
  mergetool: Remove explicit references to /dev/tty

Conflicts:
	git-mergetool.sh
</content>
</entry>
<entry>
<title>mergetool: Remove explicit references to /dev/tty</title>
<updated>2010-08-20T21:09:04Z</updated>
<author>
<name>Charles Bailey</name>
<email>charles@hashpling.org</email>
</author>
<published>2010-08-20T15:25:09Z</published>
<link rel='alternate' type='text/html' href='https://www.git.shady.money/git/commit/?id=af3147147f39274bd0d47faca196f84c4e9ec68d'/>
<id>urn:sha1:af3147147f39274bd0d47faca196f84c4e9ec68d</id>
<content type='text'>
mergetool used /dev/tty to switch back to receiving input from the user
via inside a block with a redirected stdin.

This harms testability, so change mergetool to save its original stdin
to an alternative fd in this block and restore it for those sub-commands
that need the original stdin.

Includes additional compatibility fix from Jonathan Nieder.

Tested-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
Signed-off-by: Charles Bailey &lt;charles@hashpling.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
