author | Ted Pavlic <ted@tedpavlic.com> | |
Thu, 15 Jan 2009 16:02:23 +0000 (11:02 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Thu, 15 Jan 2009 17:35:46 +0000 (09:35 -0800) | ||
commit | a42577d4c868141343378824814c058de043e24d | |
tree | bfd87fb517e800edf0c77cb04c9aed6c39c70fc0 | tree | snapshot |
parent | 50e126e185c196b9b66dcdefb4b05f090d62dd4c | commit | diff |
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>
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 | diff | blob | history |