Re: [PATCH 2/2] doc/SubmittingPatches: show how to get a CLI commit summary
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 18, 2017, 19:07 UTC
- Message-ID
- <xmqq37ea2ykh.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <20170318184203.16890-3-avarab@gmail.com>
Ævar Arnfjörð Bjarmason <avarab@gmail.com> writes:
Show 5 quoted lines
> The "Copy commit summary" command of gitk can be used to obtain this
> -format.
> +format, or this invocation of "git show":
>
> + git show -s --date=format:%Y-%m-%d --pretty='commit %h ("%s", %ad)' <commit>I've seen (I think I stole it from Peff) this one recommended often on the list, which is shorter:
$ git show --date=short -s --pretty='format:%h ("%s", %ad)' <commit>