<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/pretty.c, branch v2.13.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.13.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.13.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2017-03-10T21:24:24Z</updated>
<entry>
<title>Merge branch 'rs/log-email-subject'</title>
<updated>2017-03-10T21:24:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-03-10T21:24:24Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0a246106802b147ad81626f52c0aaa37398ba918'/>
<id>urn:sha1:0a246106802b147ad81626f52c0aaa37398ba918</id>
<content type='text'>
Code clean-up.

* rs/log-email-subject:
  pretty: use fmt_output_email_subject()
  log-tree: factor out fmt_output_email_subject()
</content>
</entry>
<entry>
<title>pretty: use fmt_output_email_subject()</title>
<updated>2017-03-01T23:09:17Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2017-03-01T11:37:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6d167fd7ccb84f07a0bd57d8e188a651e913b158'/>
<id>urn:sha1:6d167fd7ccb84f07a0bd57d8e188a651e913b158</id>
<content type='text'>
Add the email-style subject prefix (e.g. "Subject: [PATCH] ") directly
when it's needed instead of letting log_write_email_headers() prepare
it in a static buffer in advance.  This simplifies storage ownership and
code flow.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pretty: add %(trailers) format for displaying trailers of a commit message</title>
<updated>2016-12-11T21:58:41Z</updated>
<author>
<name>Jacob Keller</name>
<email>jacob.keller@gmail.com</email>
</author>
<published>2016-11-19T00:58:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d9f31fbfe98e0e363a3c69aaf6badecc746afe6b'/>
<id>urn:sha1:d9f31fbfe98e0e363a3c69aaf6badecc746afe6b</id>
<content type='text'>
Recent patches have expanded on the trailers.c code and we have the
builtin commant git-interpret-trailers which can be used to add or
modify trailer lines. However, there is no easy way to simply display
the trailers of a commit message.

Add support for %(trailers) format modifier which will use the
trailer_info_get() calls to read trailers in an identical way as git
interpret-trailers does. Use a long format option instead of a short
name so that future work can more easily unify ref-filter and pretty
formats.

Add documentation and tests for the same.

Signed-off-by: Jacob Keller &lt;jacob.keller@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'mg/gpg-richer-status'</title>
<updated>2016-10-26T20:14:45Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-26T20:14:45Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=56d268bafff7538f82c01d3c9c07bdc54b2993b1'/>
<id>urn:sha1:56d268bafff7538f82c01d3c9c07bdc54b2993b1</id>
<content type='text'>
The GPG verification status shown in "%G?" pretty format specifier
was not rich enough to differentiate a signature made by an expired
key, a signature made by a revoked key, etc.  New output letters
have been assigned to express them.

* mg/gpg-richer-status:
  gpg-interface: use more status letters
</content>
</entry>
<entry>
<title>Merge branch 'rs/cocci'</title>
<updated>2016-10-17T20:25:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-17T20:25:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=69e6544998892a2bd3c785cd238c786da40cf6a3'/>
<id>urn:sha1:69e6544998892a2bd3c785cd238c786da40cf6a3</id>
<content type='text'>
Code cleanup.

* rs/cocci:
  use strbuf_add_unique_abbrev() for adding short hashes, part 3
  remove unnecessary NULL check before free(3)
</content>
</entry>
<entry>
<title>gpg-interface: use more status letters</title>
<updated>2016-10-12T17:41:59Z</updated>
<author>
<name>Michael J Gruber</name>
<email>git@drmicha.warpmail.net</email>
</author>
<published>2016-10-12T13:04:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=661a1806819ca98c446f82b19e6c98fa174d33a4'/>
<id>urn:sha1:661a1806819ca98c446f82b19e6c98fa174d33a4</id>
<content type='text'>
According to gpg2's doc/DETAILS:

    For each signature only one of the codes GOODSIG, BADSIG,
    EXPSIG, EXPKEYSIG, REVKEYSIG or ERRSIG will be emitted.

gpg1 ("classic") behaves the same (although doc/DETAILS differs).

Currently, we parse gpg's status output for GOODSIG, BADSIG and
trust information and translate that into status codes G, B, U, N
for the %G?  format specifier.

git-verify-* returns success in the GOODSIG case only. This is
somewhat in disagreement with gpg, which considers the first 5 of
the 6 above as VALIDSIG, but we err on the very safe side.

Introduce additional status codes E, X, Y, R for ERRSIG, EXPSIG,
EXPKEYSIG, and REVKEYSIG so that a user of %G? gets more information
about the absence of a 'G' on first glance.

Requested-by: Alex &lt;agrambot@gmail.com&gt;
Signed-off-by: Michael J Gruber &lt;git@drmicha.warpmail.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>use strbuf_add_unique_abbrev() for adding short hashes, part 3</title>
<updated>2016-10-10T18:58:25Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-10-08T15:38:47Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a94bb683970a111b467a36590ca36e52754ad504'/>
<id>urn:sha1:a94bb683970a111b467a36590ca36e52754ad504</id>
<content type='text'>
Call strbuf_add_unique_abbrev() to add abbreviated hashes to strbufs
instead of taking detours through find_unique_abbrev() and its static
buffer.  This is shorter in most cases and a bit more efficient.

The changes here are not easily handled by a semantic patch because
they involve removing temporary variables and deconstructing format
strings for strbuf_addf().

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/c-auto-resets-attributes'</title>
<updated>2016-10-06T21:53:12Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-06T21:53:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=578e6021c0819d7be1179e05e7ce0e6fdb2a01b7'/>
<id>urn:sha1:578e6021c0819d7be1179e05e7ce0e6fdb2a01b7</id>
<content type='text'>
When "%C(auto)" appears at the very beginning of the pretty format
string, it did not need to issue the reset sequence, but it did.

* rs/c-auto-resets-attributes:
  pretty: avoid adding reset for %C(auto) if output is empty
</content>
</entry>
<entry>
<title>pretty: avoid adding reset for %C(auto) if output is empty</title>
<updated>2016-09-30T03:44:09Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2016-09-29T18:13:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=82b83da8d30fb8d1f04f7dd7ac769ceb6ab431c3'/>
<id>urn:sha1:82b83da8d30fb8d1f04f7dd7ac769ceb6ab431c3</id>
<content type='text'>
We emit an escape sequence for resetting color and attribute for
%C(auto) to make sure automatic coloring is displayed as intended.
Stop doing that if the output strbuf is empty, i.e. when %C(auto)
appears at the start of the format string, because then there is no
need for a reset and we save a few bytes in the output.

Signed-off-by: Rene Scharfe &lt;l.s.r@web.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'rs/c-auto-resets-attributes'</title>
<updated>2016-09-26T23:09:15Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-09-26T23:09:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b3e588a48af0ce15832c240887b9a3f9361d22bb'/>
<id>urn:sha1:b3e588a48af0ce15832c240887b9a3f9361d22bb</id>
<content type='text'>
The pretty-format specifier "%C(auto)" used by the "log" family of
commands to enable coloring of the output is taught to also issue a
color-reset sequence to the output.

* rs/c-auto-resets-attributes:
  pretty: let %C(auto) reset all attributes
</content>
</entry>
</feed>
