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>
This commit is contained in:
Jeff King 2010-01-29 05:37:23 -05:00 committed by Junio C Hamano
parent 7b48c17093
commit 02e5124355

View File

@ -1,3 +1,4 @@
#!/bin/sh
# git-mergetool--lib is a library for common merge tool functions # git-mergetool--lib is a library for common merge tool functions
diff_mode() { diff_mode() {
test "$TOOL_MODE" = diff test "$TOOL_MODE" = diff