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

Re: [PATCH] line-log: suppress diff output with "-s"

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Feb 25, 2019, 17:59 UTC
Message-ID
<20190225175918.GV1622@szeder.dev>
In-Reply-To
<20190225173248.GB17524@sigill.intra.peff.net>
On Mon, Feb 25, 2019 at 12:32:49PM -0500, Jeff King wrote:
Show 6 quoted lines
> diff --git a/line-log.c b/line-log.c
> index 24e21731c4..863f5cbe0f 100644
> --- a/line-log.c
> +++ b/line-log.c
> @@ -1106,7 +1106,8 @@ int line_log_print(struct rev_info *rev, struct commit *commit)
>  	struct line_log_data *range = lookup_line_range(rev, commit);

Note that the result of this lookup_line_range() call is only used when we do show the diff below; if we don't, there is no use calling it.

Show 7 quoted lines
>  	show_log(rev);
> -	dump_diff_hacky(rev, range);
> +	if (!(rev->diffopt.output_format & DIFF_FORMAT_NO_OUTPUT))
> +		dump_diff_hacky(rev, range);
>  	return 1;
>  }
>  
Previous: Jeff KingNext: Jeff King
Message 4 of 6 in “[BUG] git log -L ... -s does not suppress diff output”
  1. Matthew BoothFeb 25, 2019
  2. Jeff KingFeb 25, 2019
  3. line-log: suppress diff output with "-s"Jeff King, Feb 25, 2019
  4. SZEDER GáborFeb 25, 2019
  5. Jeff KingFeb 25, 2019
  6. Randall S. BeckerFeb 25, 2019

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.