summaryrefslogtreecommitdiff
path: root/git-mergetool--lib.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2010-01-29 05:37:23 -0500
committerJunio C Hamano <gitster@pobox.com>2010-01-29 09:56:51 -0800
commit02e51243559334e821e85b05dbb358e52b7ba4e5 (patch)
treeb241259c22c84e38488655db3af3b317cead9531 /git-mergetool--lib.sh
parent7b48c170931f35c07c3ce78023519846073152a1 (diff)
downloadgit-02e51243559334e821e85b05dbb358e52b7ba4e5.tar.gz
add shebang line to git-mergetool--lib.sh
Even though this script is expected to be sourced instead of executed on its own, the #!/bin/sh line provides simple documentation about what format the file is in. In particular, the lack of such a line was confusing the valgrind support of our test scripts, which assumed that any executable without a #!-line should be intercepted and run through valgrind. So during valgrind-enabled tests, any script sourcing this file actually sourced the valgrind interception script instead. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-mergetool--lib.sh')
-rw-r--r--git-mergetool--lib.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/git-mergetool--lib.sh b/git-mergetool--lib.sh
index 5b6278572a..51dd0d67ba 100644
--- a/git-mergetool--lib.sh
+++ b/git-mergetool--lib.sh
@@ -1,3 +1,4 @@
+#!/bin/sh
# git-mergetool--lib is a library for common merge tool functions
diff_mode() {
test "$TOOL_MODE" = diff