{"thread":{"id":"32998","subject":"[PATCH 1/4] git-svn: use a lowercase \"usage:\" string","startedAt":"2013-02-24T22:48:38Z","lastAt":"2013-02-24T22:48:41Z","messageCount":4,"participants":["David Aguilar"],"isPatch":true,"patchVersion":1,"patchTotal":4},"messages":[{"id":"210205","messageId":"1361746121-56921-1-git-send-email-davvid@gmail.com","threadId":"32998","inReplyTo":null,"subject":"[PATCH 1/4] git-svn: use a lowercase \"usage:\" string","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2013-02-24T22:48:38Z","receivedAt":"2013-02-24T22:48:38Z","isPatch":true,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"Make the usage string consistent with Git.\n\nSigned-off-by: David Aguilar <davvid@gmail.com>\n---\nI'm not sure why this wasn't caught in my first round.\nIt should probably be squashed into the 02/16 from v2.\n\n git-svn.perl | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n\ndiff --git a/git-svn.perl b/git-svn.perl\nindex a93166f..6c7bd95 100755\n--- a/git-svn.perl\n+++ b/git-svn.perl\n@@ -534,7 +534,7 @@ sub cmd_fetch {\n \t}\n \tmy ($remote) = @_;\n \tif (@_ > 1) {\n-\t\tdie \"Usage: $0 fetch [--all] [--parent] [svn-remote]\\n\";\n+\t\tdie \"usage: $0 fetch [--all] [--parent] [svn-remote]\\n\";\n \t}\n \t$Git::SVN::no_reuse_existing = undef;\n \tif ($_fetch_parent) {\n@@ -1404,7 +1404,7 @@ sub cmd_multi_fetch {\n # this command is special because it requires no metadata\n sub cmd_commit_diff {\n \tmy ($ta, $tb, $url) = @_;\n-\tmy $usage = \"Usage: $0 commit-diff -r<revision> \".\n+\tmy $usage = \"usage: $0 commit-diff -r<revision> \".\n \t            \"<tree-ish> <tree-ish> [<URL>]\";\n \tfatal($usage) if (!defined $ta || !defined $tb);\n \tmy $svn_path = '';\n-- \n1.7.12.4 (Apple Git-37)\n"},{"id":"210206","messageId":"1361746121-56921-2-git-send-email-davvid@gmail.com","threadId":"32998","inReplyTo":"1361746121-56921-1-git-send-email-davvid@gmail.com","subject":"[PATCH 2/4] tests: use a lowercase \"usage:\" string","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2013-02-24T22:48:39Z","receivedAt":"2013-02-24T22:48:39Z","isPatch":true,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"Adjust test commands and test suites so that their\nusage strings are consistent with Git.\n\nSigned-off-by: David Aguilar <davvid@gmail.com>\n---\n t/lib-git-svn.sh          | 2 +-\n t/t1509/prepare-chroot.sh | 2 +-\n test-chmtime.c            | 2 +-\n test-delta.c              | 2 +-\n test-genrandom.c          | 2 +-\n 5 files changed, 5 insertions(+), 5 deletions(-)\n\ndiff --git a/t/lib-git-svn.sh b/t/lib-git-svn.sh\nindex 199f22c..c5e55b1 100644\n--- a/t/lib-git-svn.sh\n+++ b/t/lib-git-svn.sh\n@@ -148,7 +148,7 @@ stop_httpd () {\n convert_to_rev_db () {\n \t\"$PERL_PATH\" -w -- - \"$@\" <<\\EOF\n use strict;\n-@ARGV == 2 or die \"Usage: convert_to_rev_db <input> <output>\";\n+@ARGV == 2 or die \"usage: convert_to_rev_db <input> <output>\";\n open my $wr, '+>', $ARGV[1] or die \"$!: couldn't open: $ARGV[1]\";\n open my $rd, '<', $ARGV[0] or die \"$!: couldn't open: $ARGV[0]\";\n my $size = (stat($rd))[7];\ndiff --git a/t/t1509/prepare-chroot.sh b/t/t1509/prepare-chroot.sh\nindex c5334a8..6269117 100755\n--- a/t/t1509/prepare-chroot.sh\n+++ b/t/t1509/prepare-chroot.sh\n@@ -14,7 +14,7 @@ xmkdir() {\n \n R=\"$1\"\n \n-[ -n \"$R\" ] || die \"Usage: prepare-chroot.sh <root>\"\n+[ -n \"$R\" ] || die \"usage: prepare-chroot.sh <root>\"\n [ -x git ] || die \"This script needs to be executed at git source code's top directory\"\n [ -x /bin/busybox ] || die \"You need busybox\"\n \ndiff --git a/test-chmtime.c b/test-chmtime.c\nindex 92713d1..02b42ba 100644\n--- a/test-chmtime.c\n+++ b/test-chmtime.c\n@@ -114,6 +114,6 @@ int main(int argc, const char *argv[])\n \treturn 0;\n \n usage:\n-\tfprintf(stderr, \"Usage: %s %s\\n\", argv[0], usage_str);\n+\tfprintf(stderr, \"usage: %s %s\\n\", argv[0], usage_str);\n \treturn -1;\n }\ndiff --git a/test-delta.c b/test-delta.c\nindex af40a3c..4595cd6 100644\n--- a/test-delta.c\n+++ b/test-delta.c\n@@ -23,7 +23,7 @@ int main(int argc, char *argv[])\n \tunsigned long from_size, data_size, out_size;\n \n \tif (argc != 5 || (strcmp(argv[1], \"-d\") && strcmp(argv[1], \"-p\"))) {\n-\t\tfprintf(stderr, \"Usage: %s\\n\", usage_str);\n+\t\tfprintf(stderr, \"usage: %s\\n\", usage_str);\n \t\treturn 1;\n \t}\n \ndiff --git a/test-genrandom.c b/test-genrandom.c\nindex b3c28d9..54824d0 100644\n--- a/test-genrandom.c\n+++ b/test-genrandom.c\n@@ -12,7 +12,7 @@ int main(int argc, char *argv[])\n \tunsigned char *c;\n \n \tif (argc < 2 || argc > 3) {\n-\t\tfprintf(stderr, \"Usage: %s <seed_string> [<size>]\\n\", argv[0]);\n+\t\tfprintf(stderr, \"usage: %s <seed_string> [<size>]\\n\", argv[0]);\n \t\treturn 1;\n \t}\n \n-- \n1.7.12.4 (Apple Git-37)\n"},{"id":"210207","messageId":"1361746121-56921-3-git-send-email-davvid@gmail.com","threadId":"32998","inReplyTo":"1361746121-56921-2-git-send-email-davvid@gmail.com","subject":"[PATCH 3/4] contrib/examples/git-remote.perl: use a lowercase \"usage:\" string","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2013-02-24T22:48:40Z","receivedAt":"2013-02-24T22:48:40Z","isPatch":true,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"Make the usage string consistent with Git.\n\nSigned-off-by: David Aguilar <davvid@gmail.com>\n---\n contrib/examples/git-remote.perl | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/contrib/examples/git-remote.perl b/contrib/examples/git-remote.perl\nindex b549a3c..d42df7b 100755\n--- a/contrib/examples/git-remote.perl\n+++ b/contrib/examples/git-remote.perl\n@@ -380,7 +380,7 @@ elsif ($ARGV[0] eq 'show') {\n \t\t}\n \t}\n \tif ($i >= @ARGV) {\n-\t\tprint STDERR \"Usage: git remote show <remote>\\n\";\n+\t\tprint STDERR \"usage: git remote show <remote>\\n\";\n \t\texit(1);\n \t}\n \tmy $status = 0;\n@@ -410,7 +410,7 @@ elsif ($ARGV[0] eq 'prune') {\n \t\t}\n \t}\n \tif ($i >= @ARGV) {\n-\t\tprint STDERR \"Usage: git remote prune <remote>\\n\";\n+\t\tprint STDERR \"usage: git remote prune <remote>\\n\";\n \t\texit(1);\n \t}\n \tmy $status = 0;\n@@ -458,13 +458,13 @@ elsif ($ARGV[0] eq 'add') {\n }\n elsif ($ARGV[0] eq 'rm') {\n \tif (@ARGV <= 1) {\n-\t\tprint STDERR \"Usage: git remote rm <remote>\\n\";\n+\t\tprint STDERR \"usage: git remote rm <remote>\\n\";\n \t\texit(1);\n \t}\n \texit(rm_remote($ARGV[1]));\n }\n else {\n-\tprint STDERR \"Usage: git remote\\n\";\n+\tprint STDERR \"usage: git remote\\n\";\n \tprint STDERR \"       git remote add <name> <url>\\n\";\n \tprint STDERR \"       git remote rm <name>\\n\";\n \tprint STDERR \"       git remote show <name>\\n\";\n-- \n1.7.12.4 (Apple Git-37)\n"},{"id":"210208","messageId":"1361746121-56921-4-git-send-email-davvid@gmail.com","threadId":"32998","inReplyTo":"1361746121-56921-3-git-send-email-davvid@gmail.com","subject":"[PATCH 4/4] contrib/mw-to-git/t/install-wiki.sh: use a lowercase \"usage:\" string","fromName":"David Aguilar","fromEmail":"davvid@gmail.com","sentAt":"2013-02-24T22:48:41Z","receivedAt":"2013-02-24T22:48:41Z","isPatch":true,"sender":{"key":"davvid@gmail.com","avatar":"https://avatars.githubusercontent.com/u/13196?v=4"},"body":"Make the usage string consistent with Git.\n\nSigned-off-by: David Aguilar <davvid@gmail.com>\n---\n contrib/mw-to-git/t/install-wiki.sh | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)\n\ndiff --git a/contrib/mw-to-git/t/install-wiki.sh b/contrib/mw-to-git/t/install-wiki.sh\nindex c6d6fa3..70a53f6 100755\n--- a/contrib/mw-to-git/t/install-wiki.sh\n+++ b/contrib/mw-to-git/t/install-wiki.sh\n@@ -15,7 +15,7 @@ fi\n \n . \"$WIKI_TEST_DIR\"/test-gitmw-lib.sh\n usage () {\n-\techo \"Usage: \"\n+\techo \"usage: \"\n \techo \"\t./install-wiki.sh <install | delete | --help>\"\n \techo \"\t\tinstall | -i :\tInstall a wiki on your computer.\"\n \techo \"\t\tdelete | -d : Delete the wiki and all its pages and \"\n-- \n1.7.12.4 (Apple Git-37)\n"}]}