git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] log --pretty: do not accept bogus "--prettyshort"

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
May 26, 2008, 10:05 UTC
Message-ID
<alpine.DEB.1.00.0805261105090.30431@racer>
In-Reply-To
<7vy75xeoql.fsf@gitster.siamese.dyndns.org>
Hi,
On Sun, 25 May 2008, Junio C Hamano wrote:
Show 12 quoted lines
> diff --git a/revision.c b/revision.c
> index ac057e1..fc66755 100644
> --- a/revision.c
> +++ b/revision.c
> @@ -1197,11 +1197,16 @@ int setup_revisions(int argc, const char **argv, struct rev_info *revs, const ch
>  				revs->verbose_header = 1;
>  				continue;
>  			}
> -			if (!prefixcmp(arg, "--pretty")) {
> +			if (!strcmp(arg, "--pretty")) {
>  				revs->verbose_header = 1;
>  				get_commit_format(arg+8, revs);

Does "args+8" really make sense, still? Okay, it is the same as "", but the latter would not make me go "Hum?!".

Ciao, Dscho

Previous: Junio C Hamano
Message 2 of 2 in “log --pretty: do not accept bogus "--prettyshort"”
  1. log --pretty: do not accept bogus "--prettyshort"Junio C Hamano, May 26, 2008
  2. Johannes SchindelinMay 26, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.