<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/trailer.c, branch v2.7.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.7.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.7.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-09-02T19:50:21Z</updated>
<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>
<entry>
<title>trailer: use capture_command</title>
<updated>2015-03-23T04:39:18Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2015-03-23T03:54:00Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c5eadcaab1d3969a4fbc009c65be622271edddd9'/>
<id>urn:sha1:c5eadcaab1d3969a4fbc009c65be622271edddd9</id>
<content type='text'>
When we read from a trailer.*.command sub-program, the
current code uses run_command followed by a pipe read, which
can result in deadlock (though in practice you would have to
have a large trailer for this to be a problem). The current
code also leaks the file descriptor for the pipe to the
sub-command.

Instead, let's use capture_command, which makes this simpler
(and we can get rid of our custom helper).

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>do not include the same header twice</title>
<updated>2015-02-13T21:16:12Z</updated>
<author>
<name>Дилян Палаузов</name>
<email>git-dpa@aegee.org</email>
</author>
<published>2015-02-13T14:47:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5d308512ffde7efa6b5aad9549320b394b79b740'/>
<id>urn:sha1:5d308512ffde7efa6b5aad9549320b394b79b740</id>
<content type='text'>
A few files include the same header file directly more than once.

As all these headers protect themselves against repeated inclusion
by the "#ifndef FOO_H / #define FOO_H / ... / #endif" idiom, leave
only the first inclusion and remove the later inclusion as a no-op
clean-up.

Signed-off-by: Дилян Палаузов &lt;git-dpa@aegee.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'cc/interpret-trailers-more'</title>
<updated>2014-12-22T20:26:24Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-12-22T20:26:23Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0ed8a4e161c06b82734f5f5268a5b1fb68abb954'/>
<id>urn:sha1:0ed8a4e161c06b82734f5f5268a5b1fb68abb954</id>
<content type='text'>
"git interpret-trailers" learned to properly handle the
"Conflicts:" block at the end.

* cc/interpret-trailers-more:
  trailer: add test with an old style conflict block
  trailer: reuse ignore_non_trailer() to ignore conflict lines
  commit: make ignore_non_trailer() non static
  merge &amp; sequencer: turn "Conflicts:" hint into a comment
  builtin/commit.c: extract ignore_non_trailer() helper function
  merge &amp; sequencer: unify codepaths that write "Conflicts:" hint
  builtin/merge.c: drop a parameter that is never used
</content>
</entry>
<entry>
<title>Merge branch 'cc/interpret-trailers'</title>
<updated>2014-11-19T21:47:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-11-19T21:47:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d4c4f18090c91377dd19df8a18232d1697455aa6'/>
<id>urn:sha1:d4c4f18090c91377dd19df8a18232d1697455aa6</id>
<content type='text'>
Small fixes to a new experimental command already in 'master'.

* cc/interpret-trailers:
  trailer: display a trailer without its trailing newline
  trailer: ignore comment lines inside the trailers
</content>
</entry>
<entry>
<title>trailer: use CHILD_PROCESS_INIT in apply_command()</title>
<updated>2014-11-10T18:03:39Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-11-09T13:49:58Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b226293b44750f4e2ebd121e6f85528170f8e2c5'/>
<id>urn:sha1:b226293b44750f4e2ebd121e6f85528170f8e2c5</id>
<content type='text'>
Initialize the struct child_process variable cp at declaration time.
This is shorter, saves a function call and prevents using the variable
before initialization by mistake.

Suggested-by: Jeff King &lt;peff@peff.net&gt;
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>
</feed>
