git-commit-vandalism/contrib/examples
Elia Pinto bc32bacc72 contrib/examples/git-revert.sh: use the $( ... ) construct for command substitution
The Git CodingGuidelines prefer the $(...) construct for command
substitution instead of using the backquotes `...`.

The backquoted form is the traditional method for command
substitution, and is supported by POSIX.  However, all but the
simplest uses become complicated quickly.  In particular, embedded
command substitutions and/or the use of double quotes require
careful escaping with the backslash character.

The patch was generated by:

for _f in $(find . -name "*.sh")
do
	perl -i -pe 'BEGIN{undef $/;} s/`(.+?)`/\$(\1)/smg'  "${_f}"
done

and then carefully proof-read.

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2015-12-27 15:33:13 -08:00
..
builtin-fetch--tool.c
git-am.sh Merge branch 'js/maint-am-skip-performance-regression' 2015-09-14 14:59:13 -07:00
git-checkout.sh
git-clean.sh
git-clone.sh
git-commit.sh contrib/examples/git-commit.sh: use the $( ... ) construct for command substitution 2015-12-27 15:33:13 -08:00
git-fetch.sh contrib/examples/git-fetch.sh: use the $( ... ) construct for command substitution 2015-12-27 15:33:13 -08:00
git-gc.sh
git-log.sh
git-ls-remote.sh
git-merge-ours.sh
git-merge.sh contrib/examples/git-merge.sh: use the $( ... ) construct for command substitution 2015-12-27 15:33:13 -08:00
git-notes.sh
git-pull.sh Merge branch 'pt/pull-builtin' 2015-10-14 14:30:21 -07:00
git-remote.perl
git-repack.sh contrib/examples/git-repack.sh: use the $( ... ) construct for command substitution 2015-12-27 15:33:13 -08:00
git-rerere.perl
git-reset.sh
git-resolve.sh
git-revert.sh contrib/examples/git-revert.sh: use the $( ... ) construct for command substitution 2015-12-27 15:33:13 -08:00
git-svnimport.perl
git-svnimport.txt
git-tag.sh
git-verify-tag.sh
git-whatchanged.sh
README

These are original scripted implementations, kept primarily for their
reference value to any aspiring plumbing users who want to learn how
pieces can be fit together.