Code

bash-completion: Add comments to remind about required arguments
authorTed Pavlic <ted@tedpavlic.com>
Thu, 15 Jan 2009 16:02:23 +0000 (11:02 -0500)
committerJunio C Hamano <gitster@pobox.com>
Thu, 15 Jan 2009 17:35:46 +0000 (09:35 -0800)
commita42577d4c868141343378824814c058de043e24d
treebfd87fb517e800edf0c77cb04c9aed6c39c70fc0
parent50e126e185c196b9b66dcdefb4b05f090d62dd4c
bash-completion: Add comments to remind about required arguments

Add a few simple comments above commands that take arguments. These
comments are meant to remind developers of potential problems that
can occur when the script is sourced on systems with "set -u." Any
function which requires arguments really ought to be called with
explicit arguments given.

Also adds a #!bash to the top of bash completions so that editing
software can always identify that the file is of sh type.

Signed-off-by: Ted Pavlic <ted@tedpavlic.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/completion/git-completion.bash