test: replace shebangs with descriptions in shell libraries
A #! line in these files is misleading, since these scriptlets are meant to be sourced with '.' (using whatever shell sources them) instead of run directly using the interpreter named on the #! line. Removing the #! line shouldn't hurt syntax highlighting since these files have filenames ending with '.sh'. For documentation, add a brief description of how the files are meant to be used in place of the shebang line. Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
b018c73526
commit
c74c72034f
@ -1,4 +1,20 @@
|
||||
#!/bin/sh
|
||||
# Shell library to run git-daemon in tests. Ends the test early if
|
||||
# GIT_TEST_GIT_DAEMON is not set.
|
||||
#
|
||||
# Usage:
|
||||
#
|
||||
# . ./test-lib.sh
|
||||
# . "$TEST_DIRECTORY"/lib-git-daemon.sh
|
||||
# start_git_daemon
|
||||
#
|
||||
# test_expect_success '...' '
|
||||
# ...
|
||||
# '
|
||||
#
|
||||
# test_expect_success ...
|
||||
#
|
||||
# stop_git_daemon
|
||||
# test_done
|
||||
|
||||
if test -z "$GIT_TEST_GIT_DAEMON"
|
||||
then
|
||||
|
Reference in New Issue
Block a user