From: David Aguilar <davvid@gmail.com>
To: tytso@mit.edu
Cc: git@vger.kernel.org, evgeny.zislis@gmail.com,
David Aguilar <davvid@gmail.com>
Subject: [PATCH] mergetool: export variables for use by custom mergetools
Date: Sat, 17 May 2008 13:39:26 -0700 [thread overview]
Message-ID: <8b4e944ac849029f31f403ab75198ed6fb4197c1.1211056369.git.davvid@gmail.com> (raw)
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
next reply other threads:[~2008-05-17 20:45 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-17 20:39 David Aguilar [this message]
2008-05-17 23:34 ` [PATCH] mergetool: export variables for use by custom mergetools Charles Bailey
2008-05-17 23:55 ` Evgeny
2008-05-18 0:07 ` Charles Bailey
2008-05-18 0:12 ` Evgeny
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8b4e944ac849029f31f403ab75198ed6fb4197c1.1211056369.git.davvid@gmail.com \
--to=davvid@gmail.com \
--cc=evgeny.zislis@gmail.com \
--cc=git@vger.kernel.org \
--cc=tytso@mit.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).