<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/trailer.c, branch v2.10.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.10.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.10.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2016-10-12T18:22:10Z</updated>
<entry>
<title>cocci: refactor common patterns to use xstrdup_or_null()</title>
<updated>2016-10-12T18:22:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2016-10-12T18:20:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=13092a916d7b8211fd828a6a7ee0d3cefff995e1'/>
<id>urn:sha1:13092a916d7b8211fd828a6a7ee0d3cefff995e1</id>
<content type='text'>
d64ea0f83b ("git-compat-util: add xstrdup_or_null helper",
2015-01-12) added a handy wrapper that allows us to get a duplicate
of a string or NULL if the original is NULL, but a handful of
codepath predate its introduction or just weren't aware of it.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>die("bug"): report bugs consistently</title>
<updated>2016-07-26T18:13:44Z</updated>
<author>
<name>Johannes Schindelin</name>
<email>johannes.schindelin@gmx.de</email>
</author>
<published>2016-07-26T16:05:50Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ef1177d18e35c030c37aa533002a11d98361e6b9'/>
<id>urn:sha1:ef1177d18e35c030c37aa533002a11d98361e6b9</id>
<content type='text'>
The vast majority of error messages in Git's source code which report a
bug use the convention to prefix the message with "BUG:".

As part of cleaning up merge-recursive to stop die()ing except in case of
detected bugs, let's just make the remainder of the bug reports consistent
with the de facto rule.

Signed-off-by: Johannes Schindelin &lt;johannes.schindelin@gmx.de&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trailer.c: mark strings for translation</title>
<updated>2016-02-29T22:27:58Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2016-02-27T06:42:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=13ad56f848976adc32fd190b4ab03f00360d40e8'/>
<id>urn:sha1:13ad56f848976adc32fd190b4ab03f00360d40e8</id>
<content type='text'>
Signed-off-by: Nguyễn Thái Ngọc Duy &lt;pclouds@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>interpret-trailers: add option for in-place editing</title>
<updated>2016-01-14T20:22:17Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2016-01-14T16:57:55Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=e1f898639e906158fec26bdf3111d6f623288fa1'/>
<id>urn:sha1:e1f898639e906158fec26bdf3111d6f623288fa1</id>
<content type='text'>
Add a command line option --in-place to support in-place editing akin to
sed -i.  This allows to write commands like the following:

  git interpret-trailers --trailer "X: Y" a.txt &gt; b.txt &amp;&amp; mv b.txt a.txt

in a more concise way:

  git interpret-trailers --trailer "X: Y" --in-place a.txt

Signed-off-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trailer: allow to write to files other than stdout</title>
<updated>2016-01-14T20:22:10Z</updated>
<author>
<name>Tobias Klauser</name>
<email>tklauser@distanz.ch</email>
</author>
<published>2016-01-14T16:57:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d0d2344ad84cde7fddedc1e141296607af673454'/>
<id>urn:sha1:d0d2344ad84cde7fddedc1e141296607af673454</id>
<content type='text'>
Use fprintf instead of printf in trailer.c in order to allow printing
to a file other than stdout. This will be needed to support in-place
editing in git interpret-trailers.

Signed-off-by: Tobias Klauser &lt;tklauser@distanz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cc/trailers-corner-case-fix'</title>
<updated>2015-09-02T19:50:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-09-02T19:50:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cdd00dfe9431b431e488d0bb77d39f1461a9dcc5'/>
<id>urn:sha1:cdd00dfe9431b431e488d0bb77d39f1461a9dcc5</id>
<content type='text'>
The "interpret-trailers" helper mistook a multi-paragraph title of
a commit log message with a colon in it as the end of the trailer
block.

* cc/trailers-corner-case-fix:
  trailer: support multiline title
</content>
</entry>
<entry>
<title>trailer: support multiline title</title>
<updated>2015-08-31T18:14:08Z</updated>
<author>
<name>Christian Couder</name>
<email>christian.couder@gmail.com</email>
</author>
<published>2015-08-30T19:14:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5c99995df8ee3b02224f0e2e86a3d1e4bb2f7348'/>
<id>urn:sha1:5c99995df8ee3b02224f0e2e86a3d1e4bb2f7348</id>
<content type='text'>
We currently ignore the first line passed to `git interpret-trailers`,
when looking for the beginning of the trailers.

Unfortunately this does not work well when a commit is created with a
line break in the title, using for example the following command:

git commit -m 'place of
code: change we made'

That's why instead of ignoring only the first line, it is better to
ignore the first paragraph.

Signed-off-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cc/trailers-corner-case-fix'</title>
<updated>2015-08-28T19:32:17Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2015-08-28T19:32:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=483c9b8602eb2f4261d135c4332c4c48fa7eb8f6'/>
<id>urn:sha1:483c9b8602eb2f4261d135c4332c4c48fa7eb8f6</id>
<content type='text'>
"interpret-trailers" helper mistook a single-liner log message that
has a colon as the end of existing trailer.

* cc/trailers-corner-case-fix:
  trailer: retitle a test and correct an in-comment message
  trailer: ignore first line of message
</content>
</entry>
<entry>
<title>trailer: retitle a test and correct an in-comment message</title>
<updated>2015-08-26T19:16:56Z</updated>
<author>
<name>Christian Couder</name>
<email>christian.couder@gmail.com</email>
</author>
<published>2015-08-26T02:51:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6262fe9ca3cd61d27ca5c5599ab46d166e5b23a2'/>
<id>urn:sha1:6262fe9ca3cd61d27ca5c5599ab46d166e5b23a2</id>
<content type='text'>
Signed-off-by: Christian Couder &lt;christian.couder@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>trailer: ignore first line of message</title>
<updated>2015-08-21T17:17:47Z</updated>
<author>
<name>Christian Couder</name>
<email>christian.couder@gmail.com</email>
</author>
<published>2015-08-20T21:59:15Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=dc5d553b5582e543f3151e43f9ae0df9831a4cc9'/>
<id>urn:sha1:dc5d553b5582e543f3151e43f9ae0df9831a4cc9</id>
<content type='text'>
When looking for the start of the trailers in the message
we are passed, we should ignore the first line of the message.

The reason is that if we are passed a patch or commit message
then the first line should be the patch title.
If we are passed only trailers we can expect that they start
with an empty line that can be ignored too.

This way we can properly process commit messages that have
only one line with something that looks like a trailer, for
example like "area of code: change we made".

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
