<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/trailer.c, branch v2.3.3</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.3.3</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.3.3'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2015-02-13T21:16:12Z</updated>
<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>
<entry>
<title>trailer: reuse ignore_non_trailer() to ignore conflict lines</title>
<updated>2014-11-10T18:00:02Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-11-09T09:23:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=61cfef4ca4bdacbb90866fa8fd0e0f0b16b2cafc'/>
<id>urn:sha1:61cfef4ca4bdacbb90866fa8fd0e0f0b16b2cafc</id>
<content type='text'>
Make sure we look for trailers before any conflict line
by reusing the ignore_non_trailer() function.

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: display a trailer without its trailing newline</title>
<updated>2014-11-10T17:43:59Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-11-09T09:23:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d52adf1f328162a9513940913ced044d24c0212f'/>
<id>urn:sha1:d52adf1f328162a9513940913ced044d24c0212f</id>
<content type='text'>
Trailers passed to the parse_trailer() function often have
a trailing newline. When erroring out, we should display
the invalid trailer properly, that means without any
trailing newline.

Helped-by: Junio C Hamano &lt;gitster@pobox.com&gt;
Helped-by: Jeff King &lt;peff@peff.net&gt;
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: ignore comment lines inside the trailers</title>
<updated>2014-11-10T17:43:16Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-11-09T09:23:39Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2887103b35b3b40025ca5060713dfb1e1c8c3b20'/>
<id>urn:sha1:2887103b35b3b40025ca5060713dfb1e1c8c3b20</id>
<content type='text'>
Otherwise trailers that are commented out might be
processed. We would also error out if the comment line
char is also a separator.

This means that comments inside a trailer block will
disappear, but that was already the case anyway.

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>use child_process_init() to initialize struct child_process variables</title>
<updated>2014-10-28T21:56:17Z</updated>
<author>
<name>René Scharfe</name>
<email>l.s.r@web.de</email>
</author>
<published>2014-10-28T20:52:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8828f2985f1967201c256fb01f92a91acfdb5001'/>
<id>urn:sha1:8828f2985f1967201c256fb01f92a91acfdb5001</id>
<content type='text'>
Call child_process_init() instead of zeroing the memory of variables of
type struct child_process by hand before use because the former is both
clearer and shorter.

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>trailer: execute command from 'trailer.&lt;name&gt;.command'</title>
<updated>2014-10-13T20:59:48Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-10-13T18:16:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=85039fb6e4e7123958a40a22ef40e25bcb29f9c0'/>
<id>urn:sha1:85039fb6e4e7123958a40a22ef40e25bcb29f9c0</id>
<content type='text'>
Let the user specify a command that will give on its standard output
the value to use for the specified trailer.

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: put all the processing together and print</title>
<updated>2014-10-13T20:55:27Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-10-13T18:16:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b1d78d77bfbf026e8222c02f1009767a466de0b1'/>
<id>urn:sha1:b1d78d77bfbf026e8222c02f1009767a466de0b1</id>
<content type='text'>
This patch adds the process_trailers() function that
calls all the previously added processing functions
and then prints the results on the standard output.

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