<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/trailer.c, branch v2.2.0</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.2.0</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.2.0'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-11-19T21:47:52Z</updated>
<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: 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>
<entry>
<title>trailer: parse trailers from file or stdin</title>
<updated>2014-10-13T20:55:27Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-10-13T18:16:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=2013d8505da95d355e610c08473f2e0b45645bf9'/>
<id>urn:sha1:2013d8505da95d355e610c08473f2e0b45645bf9</id>
<content type='text'>
Read trailers from a file or from stdin, parse the trailers and then
put the result into a doubly linked list.

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: process command line trailer arguments</title>
<updated>2014-10-13T20:55:27Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-10-13T18:16:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0a90b4edff44af9a3cb3c30ff8e656a59581a2f'/>
<id>urn:sha1:f0a90b4edff44af9a3cb3c30ff8e656a59581a2f</id>
<content type='text'>
Parse the trailer command line arguments and put
the result into an arg_tok doubly linked list.

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: read and process config information</title>
<updated>2014-10-13T20:55:26Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2014-10-13T18:16:25Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=46a0613f00f2cf6a61d04fa49131fcbe3afaad07'/>
<id>urn:sha1:46a0613f00f2cf6a61d04fa49131fcbe3afaad07</id>
<content type='text'>
Read the configuration to get trailer information, and then process
it and store it in a doubly linked list.

The config information is stored in the list whose first item is
pointed to by:

static struct trailer_item *first_conf_item;

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