@matheusbsbs / matheus-bagliano / commits / 5354a56fe7
Fork 0

Replace uses of "git-var" with "git var"

Signed-off-by: Todd Zullinger <tmz@pobox.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Todd Zullinger committed Jul 30, 2008 at 13:48 UTC 5354a56fe70420c147f930e0f7f1decbae685d19
7 files changed +9 -9
Documentation/git-send-email.txt
+1 -1
@@ -56,7 +56,7 @@ The --cc option must be repeated for each user you want on the cc list.
56
57 --from::
58 Specify the sender of the emails. This will default to
59 - the value GIT_COMMITTER_IDENT, as returned by "git-var -l".
59 + the value GIT_COMMITTER_IDENT, as returned by "git var -l".
60 The user will still be prompted to confirm this entry.
61
62 --in-reply-to::
contrib/examples/git-commit.sh
+3 -3
@@ -443,7 +443,7 @@ fi | git stripspace >"$GIT_DIR"/COMMIT_EDITMSG
443
444 case "$signoff" in
445 t)
446 - sign=$(git-var GIT_COMMITTER_IDENT | sed -e '
446 + sign=$(git var GIT_COMMITTER_IDENT | sed -e '
447 s/>.*/>/
448 s/^/Signed-off-by: /
449 ')
@@ -535,8 +535,8 @@ esac
535
536 case "$no_edit" in
537 '')
538 - git-var GIT_AUTHOR_IDENT > /dev/null || die
539 - git-var GIT_COMMITTER_IDENT > /dev/null || die
538 + git var GIT_AUTHOR_IDENT > /dev/null || die
539 + git var GIT_COMMITTER_IDENT > /dev/null || die
540 git_editor "$GIT_DIR/COMMIT_EDITMSG"
541 ;;
542 esac
contrib/examples/git-tag.sh
+1 -1
@@ -164,7 +164,7 @@ git check-ref-format "tags/$name" ||
164
165 object=$(git rev-parse --verify --default HEAD "$@") || exit 1
166 type=$(git cat-file -t $object) || exit 1
167 -tagger=$(git-var GIT_COMMITTER_IDENT) || exit 1
167 +tagger=$(git var GIT_COMMITTER_IDENT) || exit 1
168
169 test -n "$username" ||
170 username=$(git config user.signingkey) ||
git-am.sh
+1 -1
@@ -291,7 +291,7 @@ fi
291 ws=`cat "$dotest/whitespace"`
292 if test "$(cat "$dotest/sign")" = t
293 then
294 - SIGNOFF=`git-var GIT_COMMITTER_IDENT | sed -e '
294 + SIGNOFF=`git var GIT_COMMITTER_IDENT | sed -e '
295 s/>.*/>/
296 s/^/Signed-off-by: /'
297 `
ident.c
+1 -1
@@ -204,7 +204,7 @@ const char *fmt_ident(const char *name, const char *email,
204 if ((warn_on_no_name || error_on_no_name) &&
205 name == git_default_name && env_hint) {
206 fprintf(stderr, env_hint, au_env, co_env);
207 - env_hint = NULL; /* warn only once, for "git-var -l" */
207 + env_hint = NULL; /* warn only once, for "git var -l" */
208 }
209 if (error_on_no_name)
210 die("empty ident %s <%s> not allowed", name, email);
perl/Git.pm
+1 -1
@@ -730,7 +730,7 @@ This suite of functions retrieves and parses ident information, as stored
730 in the commit and tag objects or produced by C<var GIT_type_IDENT> (thus
731 C<TYPE> can be either I<author> or I<committer>; case is insignificant).
732
733 -The C<ident> method retrieves the ident information from C<git-var>
733 +The C<ident> method retrieves the ident information from C<git var>
734 and either returns it as a scalar string or as an array with the fields parsed.
735 Alternatively, it can take a prepared ident string (e.g. from the commit
736 object) and just parse it.
var.c
+1 -1
@@ -5,7 +5,7 @@
5 */
6 #include "cache.h"
7
8 -static const char var_usage[] = "git-var [-l | <variable>]";
8 +static const char var_usage[] = "git var [-l | <variable>]";
9
10 struct git_var {
11 const char *name;