login
Header Space

 
 

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

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

The MERGED, BACKUP, LOCAL, REMOTE and BASE variables were not being
exported from the git-mergetool.sh script.  This prevented custom
mergetools from being able to use them.

We now export them so that arbitrary mergetools can easily interact
with git mergetool.

This problem was Reported-By: Evgeny <evgeny.zislis@gmail.com>

Signed-off-by: David Aguilar <davvid@gmail.com>
---
 git-mergetool.sh |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/git-mergetool.sh b/git-mergetool.sh
index fcdec4a..c4f31ee 100755
--- a/git-mergetool.sh
+++ b/git-mergetool.sh
@@ -146,6 +146,12 @@ merge_file () {
     REMOTE="$MERGED.REMOTE.$ext"
     BASE="$MERGED.BASE.$ext"
 
+    export MERGED
+    export BACKUP
+    export LOCAL
+    export REMOTE
+    export BASE
+
     mv -- "$MERGED" "$BACKUP"
     cp -- "$BACKUP" "$MERGED"
 
-- 
1.5.5.1

--
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:
[PATCH] mergetool: export variables for use by custom merget..., David Aguilar, (Sat May 17, 4:39 pm)
speck-geostationary