Code

git-commit.sh: Shell script cleanup
authorDavid Kastrup <dak@gnu.org>
Mon, 17 Sep 2007 20:56:44 +0000 (22:56 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 18 Sep 2007 21:58:24 +0000 (14:58 -0700)
commitd28840461d9cebd79f1ec30a4117661b41e2c9a3
treebe2757a03bfdd2c04c34bf32b6968c4761314801
parent76bf8d0e0ad0840395471fd862bd2cdad095345d
git-commit.sh: Shell script cleanup

This moves "shift" out of the argument processing "case".  It also
replaces quite a bit of expr calls with ${parameter#word} constructs,
and uses ${parameter:+word} for avoiding conditionals where possible.

Signed-off-by: David Kastrup <dak@gnu.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
git-commit.sh