diff options
author | Junio C Hamano <junkio@cox.net> | 2005-11-28 01:29:52 -0800 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2005-11-28 01:29:52 -0800 |
commit | 9f63892b3803701c97259d51143e199fe9603d3f (patch) | |
tree | cbb481a09bd2ab0e4fa8fc43fe0a910c7fed24fb /mailinfo.c | |
parent | f1f909e3185b5ee366e198042447afe749bfc813 (diff) | |
download | git-9f63892b3803701c97259d51143e199fe9603d3f.tar.gz |
mailinfo: Do not use -u=<encoding>; say --encoding=<encoding>
Specifying the value for a single letter, single dash option
parameter with equal sign looked funny, and more importantly
calling the flag to override encoding from utf-8 to something
else "-u" (obviously abbreviated from "utf-8") did not make any
sense. So spell it out.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'mailinfo.c')
-rw-r--r-- | mailinfo.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailinfo.c b/mailinfo.c index de105acaa8..890e3487ad 100644 --- a/mailinfo.c +++ b/mailinfo.c @@ -717,7 +717,7 @@ static void handle_body(void) } static const char mailinfo_usage[] = - "git-mailinfo [-k] [-u] msg patch <mail >info"; + "git-mailinfo [-k] [-u | --encoding=<encoding>] msg patch <mail >info"; int main(int argc, char **argv) { @@ -731,8 +731,8 @@ int main(int argc, char **argv) keep_subject = 1; else if (!strcmp(argv[1], "-u")) metainfo_charset = git_commit_encoding; - else if (!strncmp(argv[1], "-u=", 3)) - metainfo_charset = argv[1] + 3; + else if (!strncmp(argv[1], "--encoding=", 11)) + metainfo_charset = argv[1] + 11; else usage(mailinfo_usage); argc--; argv++; |