1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-11-01 06:47:52 +01:00
git/contrib/examples
Elia Pinto b352891021 git-tag.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
   sed -i 's@`\(.*\)`@$(\1)@g' ${_f}
done

and then carefully proof-read.

Signed-off-by: Elia Pinto <gitter.spiros@gmail.com>
Reviewed-by: Matthieu Moy <Matthieu.Moy@imag.fr>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2014-04-17 11:15:00 -07:00
..
builtin-fetch--tool.c Merge branch 'jc/merge-bases' 2012-09-11 11:36:05 -07:00
git-checkout.sh git-checkout.sh: use the $( ... ) construct for command substitution 2014-04-17 11:14:58 -07:00
git-clean.sh
git-clone.sh git-clone.sh: use the $( ... ) construct for command substitution 2014-04-17 11:14:58 -07:00
git-commit.sh git-commit.sh: use the $( ... ) construct for command substitution 2014-04-17 11:14:59 -07:00
git-fetch.sh git-fetch.sh: use the $( ... ) construct for command substitution 2014-04-17 11:14:59 -07:00
git-gc.sh
git-log.sh core-tutorial: trim the section on Inspecting Changes 2013-08-13 09:01:52 -07:00
git-ls-remote.sh git-ls-remote.sh: use the $( ... ) construct for command substitution 2014-04-17 11:14:59 -07:00
git-merge-ours.sh
git-merge.sh git-merge.sh: use the $( ... ) construct for command substitution 2014-04-17 11:14:59 -07:00
git-notes.sh Builtin-ify git-notes 2010-02-13 19:36:13 -08:00
git-remote.perl contrib/examples/git-remote.perl: use a lowercase "usage:" string 2013-02-24 21:30:15 -08:00
git-repack.sh git-repack.sh: use the $( ... ) construct for command substitution 2014-04-17 11:15:00 -07:00
git-rerere.perl
git-reset.sh
git-resolve.sh git-resolve.sh: use the $( ... ) construct for command substitution 2014-04-17 11:15:00 -07:00
git-revert.sh git-revert.sh: use the $( ... ) construct for command substitution 2014-04-17 11:15:00 -07:00
git-svnimport.perl contrib/examples: use a lowercase "usage:" string 2013-02-24 13:31:09 -08:00
git-svnimport.txt
git-tag.sh git-tag.sh: use the $( ... ) construct for command substitution 2014-04-17 11:15:00 -07:00
git-verify-tag.sh
git-whatchanged.sh repo-config: remove deprecated alias for "git config" 2013-11-12 14:10:17 -08:00
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.