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

Re: [RFC/PATCH] reset --hard: make use of the pretty machinery

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 2, 2018, 20:16 UTC
Message-ID
<xmqqa7wrcfk9.fsf@gitster-ct.c.googlers.com>
In-Reply-To
<20180201205721.30087-1-t.gummerer@gmail.com>
Thomas Gummerer <t.gummerer@gmail.com> writes:
> In addition to the easier to follow code, this makes the output more
> consistent with other commands that print the title of the commit, such
> as 'git commit --oneline' or 'git checkout', which both use
> 'pp_commit_easy()' with the CMIT_FMT_ONELINE modifier.
Yes, this is absolutely the right thing to do.
Show 9 quoted lines
> +
> +	pp_commit_easy(CMIT_FMT_ONELINE, commit, &buf);
> +	if (buf.len > 0)
> +		printf(" %s", buf.buf);
> +	putchar('\n');
> +	strbuf_release(&buf);
>  }
>  
>  static void update_index_from_diff(struct diff_queue_struct *q,
Thanks, will queue.
Previous: Jeff King
Message 3 of 3 in “reset --hard: make use of the pretty machinery”
  1. reset --hard: make use of the pretty machineryThomas Gummerer, Feb 1, 2018
  2. Jeff KingFeb 2, 2018
  3. Junio C HamanoFeb 2, 2018

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.