{"thread":{"id":"14763","subject":"[PATCH] Replace uses of \"git-var\" with \"git var\"","startedAt":"2008-07-30T17:48:33Z","lastAt":"2008-07-31T05:59:16Z","messageCount":2,"participants":["Todd Zullinger","Junio C Hamano"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"85655","messageId":"20080730174833.GZ5655@inocybe.teonanacatl.org","threadId":"14763","inReplyTo":null,"subject":"[PATCH] Replace uses of \"git-var\" with \"git var\"","fromName":"Todd Zullinger","fromEmail":"tmz@pobox.com","sentAt":"2008-07-30T17:48:33Z","receivedAt":"2008-07-30T17:48:33Z","isPatch":true,"sender":{"key":"tmz@pobox.com","avatar":"https://avatars.githubusercontent.com/u/806319?v=4"},"body":"Signed-off-by: Todd Zullinger <tmz@pobox.com>\n---\n\nI noticed while reading the git send-email documentation that it mentioned\ngit-var -l.  I have hopefully fixed up all the places where git-var is used and\nnot broken anything.\n\n Documentation/git-send-email.txt |    2 +-\n contrib/examples/git-commit.sh   |    6 +++---\n contrib/examples/git-tag.sh      |    2 +-\n git-am.sh                        |    2 +-\n ident.c                          |    2 +-\n perl/Git.pm                      |    2 +-\n var.c                            |    2 +-\n 7 files changed, 9 insertions(+), 9 deletions(-)\n\ndiff --git a/Documentation/git-send-email.txt b/Documentation/git-send-email.txt\nindex afbb294..e2437f3 100644\n--- a/Documentation/git-send-email.txt\n+++ b/Documentation/git-send-email.txt\n@@ -56,7 +56,7 @@ The --cc option must be repeated for each user you want on the cc list.\n \n --from::\n \tSpecify the sender of the emails.  This will default to\n-\tthe value GIT_COMMITTER_IDENT, as returned by \"git-var -l\".\n+\tthe value GIT_COMMITTER_IDENT, as returned by \"git var -l\".\n \tThe user will still be prompted to confirm this entry.\n \n --in-reply-to::\ndiff --git a/contrib/examples/git-commit.sh b/contrib/examples/git-commit.sh\nindex 2c4a406..5c72f65 100755\n--- a/contrib/examples/git-commit.sh\n+++ b/contrib/examples/git-commit.sh\n@@ -443,7 +443,7 @@ fi | git stripspace >\"$GIT_DIR\"/COMMIT_EDITMSG\n \n case \"$signoff\" in\n t)\n-\tsign=$(git-var GIT_COMMITTER_IDENT | sed -e '\n+\tsign=$(git var GIT_COMMITTER_IDENT | sed -e '\n \t\ts/>.*/>/\n \t\ts/^/Signed-off-by: /\n \t\t')\n@@ -535,8 +535,8 @@ esac\n \n case \"$no_edit\" in\n '')\n-\tgit-var GIT_AUTHOR_IDENT > /dev/null  || die\n-\tgit-var GIT_COMMITTER_IDENT > /dev/null  || die\n+\tgit var GIT_AUTHOR_IDENT > /dev/null  || die\n+\tgit var GIT_COMMITTER_IDENT > /dev/null  || die\n \tgit_editor \"$GIT_DIR/COMMIT_EDITMSG\"\n \t;;\n esac\ndiff --git a/contrib/examples/git-tag.sh b/contrib/examples/git-tag.sh\nindex e9f3a22..2c15bc9 100755\n--- a/contrib/examples/git-tag.sh\n+++ b/contrib/examples/git-tag.sh\n@@ -164,7 +164,7 @@ git check-ref-format \"tags/$name\" ||\n \n object=$(git rev-parse --verify --default HEAD \"$@\") || exit 1\n type=$(git cat-file -t $object) || exit 1\n-tagger=$(git-var GIT_COMMITTER_IDENT) || exit 1\n+tagger=$(git var GIT_COMMITTER_IDENT) || exit 1\n \n test -n \"$username\" ||\n \tusername=$(git config user.signingkey) ||\ndiff --git a/git-am.sh b/git-am.sh\nindex 6aa8192..8f91a97 100755\n--- a/git-am.sh\n+++ b/git-am.sh\n@@ -291,7 +291,7 @@ fi\n ws=`cat \"$dotest/whitespace\"`\n if test \"$(cat \"$dotest/sign\")\" = t\n then\n-\tSIGNOFF=`git-var GIT_COMMITTER_IDENT | sed -e '\n+\tSIGNOFF=`git var GIT_COMMITTER_IDENT | sed -e '\n \t\t\ts/>.*/>/\n \t\t\ts/^/Signed-off-by: /'\n \t\t`\ndiff --git a/ident.c b/ident.c\nindex b35504a..09cf0c9 100644\n--- a/ident.c\n+++ b/ident.c\n@@ -204,7 +204,7 @@ const char *fmt_ident(const char *name, const char *email,\n \t\tif ((warn_on_no_name || error_on_no_name) &&\n \t\t    name == git_default_name && env_hint) {\n \t\t\tfprintf(stderr, env_hint, au_env, co_env);\n-\t\t\tenv_hint = NULL; /* warn only once, for \"git-var -l\" */\n+\t\t\tenv_hint = NULL; /* warn only once, for \"git var -l\" */\n \t\t}\n \t\tif (error_on_no_name)\n \t\t\tdie(\"empty ident %s <%s> not allowed\", name, email);\ndiff --git a/perl/Git.pm b/perl/Git.pm\nindex d99e778..087d3d0 100644\n--- a/perl/Git.pm\n+++ b/perl/Git.pm\n@@ -730,7 +730,7 @@ This suite of functions retrieves and parses ident information, as stored\n in the commit and tag objects or produced by C<var GIT_type_IDENT> (thus\n C<TYPE> can be either I<author> or I<committer>; case is insignificant).\n \n-The C<ident> method retrieves the ident information from C<git-var>\n+The C<ident> method retrieves the ident information from C<git var>\n and either returns it as a scalar string or as an array with the fields parsed.\n Alternatively, it can take a prepared ident string (e.g. from the commit\n object) and just parse it.\ndiff --git a/var.c b/var.c\nindex 724ba87..f1eb314 100644\n--- a/var.c\n+++ b/var.c\n@@ -5,7 +5,7 @@\n  */\n #include \"cache.h\"\n \n-static const char var_usage[] = \"git-var [-l | <variable>]\";\n+static const char var_usage[] = \"git var [-l | <variable>]\";\n \n struct git_var {\n \tconst char *name;\n-- \n1.6.0.rc1\n\n\n-- \nTodd        OpenPGP -> KeyID: 0xBEAF0CE3 | URL: www.pobox.com/~tmz/pgp\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nI am not young enough to know everything.\n    -- Oscar Wilde (1854-1900)\n"},{"id":"85729","messageId":"7vsktq387f.fsf@gitster.siamese.dyndns.org","threadId":"14763","inReplyTo":"20080730174833.GZ5655@inocybe.teonanacatl.org","subject":"Re: [PATCH] Replace uses of \"git-var\" with \"git var\"","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2008-07-31T05:59:16Z","receivedAt":"2008-07-31T05:59:16Z","isPatch":true,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Thanks, applied.\n"}]}