From: Junio C Hamano <gitster@pobox.com>
To: Thomas Gummerer <t.gummerer@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: [RFC/PATCH] reset --hard: make use of the pretty machinery
Date: Fri, 02 Feb 2018 12:16:54 -0800 [thread overview]
Message-ID: <xmqqa7wrcfk9.fsf@gitster-ct.c.googlers.com> (raw)
In-Reply-To: <20180201205721.30087-1-t.gummerer@gmail.com> (Thomas Gummerer's message of "Thu, 1 Feb 2018 20:57:21 +0000")
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.
> +
> + 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.
prev parent reply other threads:[~2018-02-02 20:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-01 20:57 [RFC/PATCH] reset --hard: make use of the pretty machinery Thomas Gummerer
2018-02-02 7:15 ` Jeff King
2018-02-02 20:16 ` Junio C Hamano [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=xmqqa7wrcfk9.fsf@gitster-ct.c.googlers.com \
--to=gitster@pobox.com \
--cc=git@vger.kernel.org \
--cc=t.gummerer@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).