Code

mergetool: Use args as pathspec to unmerged files
authorJonathon Mah <me@JonathonMah.com>
Fri, 16 Sep 2011 02:12:10 +0000 (19:12 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 26 Sep 2011 16:39:36 +0000 (09:39 -0700)
commit3e8e691abe4e1cce73a8a2ef413dada0278e7b3b
tree8835c83dc6dc584482acc6f94063399a07c1e1eb
parent2765233c64c35eb43a8b46c377fb8b464469221f
mergetool: Use args as pathspec to unmerged files

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 <me@JonathonMah.com>
Acked-by: David Aguilar <davvid@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/git-mergetool.txt
git-mergetool.sh
t/t7610-mergetool.sh