login
Header Space

 
 

Re: [PATCH] mergetool: export variables for use by custom mergetools

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: David Aguilar <davvid@...>
Cc: <tytso@...>, <git@...>, <evgeny.zislis@...>
Date: Saturday, May 17, 2008 - 7:34 pm

On Sat, May 17, 2008 at 01:39:26PM -0700, David Aguilar wrote:

I think there must be a misunderstanding here. The variables are not
designed to be exported. The point of the custom merge tool patch to
git mergetool was to support custom mergetools without the need for a
wrapper script, just a git config variable.

I know that (with the right config) git mergetool supports p4merge as
it is one of a selection of tools that I tested it with. You should be
able to get p4 merge to work by setting the config variable:

mergetool.p4merge.cmd

to the value (IIRC, and I don't have the p4merge documentation to hand):

p4merge "$BASE" "$REMOTE" "$LOCAL" "$MERGED"

Getting the quoting correct on this depends on whether you set it via
commandline or via editing a git config file and can be a little
tricky.

If you have a wrapper shell script then you can easily pass these as
positional parameters and re-export them as necessary.

-- 
Charles Bailey
http://ccgi.hashpling.plus.com/blog/
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [PATCH] mergetool: export variables for use by custom me..., Charles Bailey, (Sat May 17, 7:34 pm)
speck-geostationary