From: Yann Dirson Date: Sat, 23 Oct 2010 18:44:25 GMT Subject: Re: [PATCH] Sync "git diff -h" with the manual, show options summary. Message-ID: <20101023184425.GP4983@home.lan> In-Reply-To: On Sat, Oct 23, 2010 at 08:04:26PM +0200, Matthieu Moy wrote: > Thiago Farina writes: > > > On Sat, Oct 23, 2010 at 11:33 AM, Yann Dirson wrote: > >>  static const char builtin_diff_usage[] = > >> -"git diff {0,2} -- *"; > >> +"git diff [] {0,2} -- *" > > > > Why change from to ? > > Because this is what the man page says I guess. Yes, as well as the usage strings for diff-tree, diff-files, and diff-index. "diff" was just the only one to be different here, and if we want to keep "" for conciseness here, we also probably want to change it everywhere (or maybe "" for the diff-* commands ?) - after all, this is just a short usage string, not the reference page.