<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/Documentation/git-interpret-trailers.txt, branch v2.21.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.21.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.21.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2018-09-17T20:53:54Z</updated>
<entry>
<title>Merge branch 'jk/trailer-fixes'</title>
<updated>2018-09-17T20:53:54Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-09-17T20:53:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fba9654364a523bf146df26052ab05dd52c1d719'/>
<id>urn:sha1:fba9654364a523bf146df26052ab05dd52c1d719</id>
<content type='text'>
"git interpret-trailers" and its underlying machinery had a buggy
code that attempted to ignore patch text after commit log message,
which triggered in various codepaths that will always get the log
message alone and never get such an input.

* jk/trailer-fixes:
  append_signoff: use size_t for string offsets
  sequencer: ignore "---" divider when parsing trailers
  pretty, ref-filter: format %(trailers) with no_divider option
  interpret-trailers: allow suppressing "---" divider
  interpret-trailers: tighten check for "---" patch boundary
  trailer: pass process_trailer_opts to trailer_info_get()
  trailer: use size_t for iterating trailer list
  trailer: use size_t for string offsets
</content>
</entry>
<entry>
<title>interpret-trailers: allow suppressing "---" divider</title>
<updated>2018-08-23T17:08:51Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2018-08-23T00:49:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1688c9a4894df517241026c7a3848bdc84607986'/>
<id>urn:sha1:1688c9a4894df517241026c7a3848bdc84607986</id>
<content type='text'>
Even with the newly-tightened "---" parser, it's still
possible for a commit message to trigger a false positive if
it contains something like "--- foo". If the caller knows
that it has only a single commit message, it can now tell us
with the "--no-divider" option, eliminating any false
positives.

If we were designing this from scratch, I'd probably make
this the default. But we've advertised the "---" behavior in
the documentation since interpret-trailers has existed.
Since it's meant to be scripted, breaking that would be a
bad idea.

Note that the logic is in the underlying trailer.c code,
which is used elsewhere. The default there will keep the
current behavior, but many callers will benefit from setting
this new option. That's left for future patches.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>interpret-trailers: tighten check for "---" patch boundary</title>
<updated>2018-08-23T17:08:51Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2018-08-23T00:48:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c188668e387509565237a865a1c63e890f6bbcd7'/>
<id>urn:sha1:c188668e387509565237a865a1c63e890f6bbcd7</id>
<content type='text'>
The interpret-trailers command accepts not only raw commit
messages, but it also can manipulate trailers in
format-patch output. That means it must find the "---"
boundary separating the commit message from the patch.
However, it does so by looking for any line starting with
"---", regardless of whether there is further content.

This is overly lax compared to the parsing done in
mailinfo.c's patchbreak(), and may cause false positives
(e.g., t/perf output tables uses dashes; if you cut and
paste them into your commit message, it fools the parser).

We could try to reuse patchbreak() here, but it actually has
several heuristics that are not of interest to us (e.g.,
matching "diff -" without a three-dash separator or even a
CVS "Index:" line). We're not interested in taking in
whatever random cruft people may send, but rather handling
git-formatted patches.

Note that the existing documentation was written in a loose
way, so technically we are changing the behavior from what
it said. But this should implement the original intent in a
more accurate way.

Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'sb/trailers-docfix'</title>
<updated>2018-08-15T22:08:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-08-15T22:08:19Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ae4e3f4ae280d71eda15cee9a42a021f7360bd7e'/>
<id>urn:sha1:ae4e3f4ae280d71eda15cee9a42a021f7360bd7e</id>
<content type='text'>
Doc update.

* sb/trailers-docfix:
  Documentation/git-interpret-trailers: explain possible values
</content>
</entry>
<entry>
<title>Documentation/git-interpret-trailers: explain possible values</title>
<updated>2018-07-20T22:23:59Z</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2018-07-20T21:53:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1e83b9bfdddd726ad86f1357ae1dc2ee03f4a46f'/>
<id>urn:sha1:1e83b9bfdddd726ad86f1357ae1dc2ee03f4a46f</id>
<content type='text'>
Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Use proper syntax for replaceables in command docs</title>
<updated>2018-05-25T08:16:47Z</updated>
<author>
<name>Robert P. J. Day</name>
<email>rpjday@crashcourse.ca</email>
</author>
<published>2018-05-24T20:11:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=de613050efec781e8380a0267879a25b2d489513'/>
<id>urn:sha1:de613050efec781e8380a0267879a25b2d489513</id>
<content type='text'>
The standard for command documentation synopses appears to be:

  [...] means optional
  &lt;...&gt; means replaceable
  [&lt;...&gt;] means both optional and replaceable

So fix a number of doc pages that use incorrect variations of the
above.

Signed-off-by: Robert P. J. Day &lt;rpjday@crashcourse.ca&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'bc/doc-interpret-trailers-grammofix'</title>
<updated>2018-02-27T18:34:00Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2018-02-27T18:34:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a42d457dc4a60d55c1edadb92ee796b068b9b5e1'/>
<id>urn:sha1:a42d457dc4a60d55c1edadb92ee796b068b9b5e1</id>
<content type='text'>
Docfix.

* bc/doc-interpret-trailers-grammofix:
  docs/interpret-trailers: fix agreement error
</content>
</entry>
<entry>
<title>docs/interpret-trailers: fix agreement error</title>
<updated>2018-02-13T17:45:45Z</updated>
<author>
<name>brian m. carlson</name>
<email>sandals@crustytoothpaste.net</email>
</author>
<published>2018-02-13T02:23:52Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=760f1ad101fe9f1a5f8cf5ba6637de835987f27a'/>
<id>urn:sha1:760f1ad101fe9f1a5f8cf5ba6637de835987f27a</id>
<content type='text'>
In the description of git interpret-trailers, we describe "a group…of
lines" that have certain characteristics.  Ensure both options
describing this group use a singular verb for parallelism.

Signed-off-by: brian m. carlson &lt;sandals@crustytoothpaste.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'jk/trailers-parse'</title>
<updated>2017-08-27T05:55:04Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2017-08-27T05:55:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=06cf4f2d87d670f6d49c208fa41933941205da90'/>
<id>urn:sha1:06cf4f2d87d670f6d49c208fa41933941205da90</id>
<content type='text'>
"git interpret-trailers" has been taught a "--parse" and a few
other options to make it easier for scripts to grab existing
trailer lines from a commit log message.

* jk/trailers-parse:
  doc/interpret-trailers: fix "the this" typo
  pretty: support normalization options for %(trailers)
  t4205: refactor %(trailers) tests
  pretty: move trailer formatting to trailer.c
  interpret-trailers: add --parse convenience option
  interpret-trailers: add an option to unfold values
  interpret-trailers: add an option to show only existing trailers
  interpret-trailers: add an option to show only the trailers
  trailer: put process_trailers() options into a struct
</content>
</entry>
<entry>
<title>doc/interpret-trailers: fix "the this" typo</title>
<updated>2017-08-20T17:04:57Z</updated>
<author>
<name>Martin Ågren</name>
<email>martin.agren@gmail.com</email>
</author>
<published>2017-08-20T09:40:09Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5a0d0c037cc187a6eee6329206b9f6a48746a054'/>
<id>urn:sha1:5a0d0c037cc187a6eee6329206b9f6a48746a054</id>
<content type='text'>
Signed-off-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
