<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/log-tree.h, branch v2.6.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v2.6.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v2.6.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2014-10-20T19:23:48Z</updated>
<entry>
<title>Merge branch 'jn/parse-config-slot'</title>
<updated>2014-10-20T19:23:48Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2014-10-20T19:23:48Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b94657683996402228abb1694a5db4792c424f9e'/>
<id>urn:sha1:b94657683996402228abb1694a5db4792c424f9e</id>
<content type='text'>
Code cleanup.

* jn/parse-config-slot:
  color_parse: do not mention variable name in error message
  pass config slots as pointers instead of offsets
</content>
</entry>
<entry>
<title>pass config slots as pointers instead of offsets</title>
<updated>2014-10-14T18:01:05Z</updated>
<author>
<name>Jonathan Nieder</name>
<email>jrnieder@gmail.com</email>
</author>
<published>2014-10-07T19:16:57Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8852117a603c5ed5131233a80453db37c0958871'/>
<id>urn:sha1:8852117a603c5ed5131233a80453db37c0958871</id>
<content type='text'>
Many config-parsing helpers, like parse_branch_color_slot,
take the name of a config variable and an offset to the
"slot" name (e.g., "color.branch.plain" is passed along with
"13" to effectively pass "plain"). This is leftover from the
time that these functions would die() on error, and would
want the full variable name for error reporting.

These days they do not use the full variable name at all.
Passing a single pointer to the slot name is more natural,
and lets us more easily adjust the callers to use skip_prefix
to avoid manually writing offset numbers.

This is effectively a continuation of 9e1a5eb, which did the
same for parse_diff_color_slot. This patch covers all of the
remaining similar constructs.

Signed-off-by: Jonathan Nieder &lt;jrnieder@gmail.com&gt;
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>pretty: add %D format specifier</title>
<updated>2014-09-18T22:15:21Z</updated>
<author>
<name>Harry Jeffery</name>
<email>harry@exec64.co.uk</email>
</author>
<published>2014-09-18T20:53:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9271095cc5571e306d709ebf8eb7f0a388254d9d'/>
<id>urn:sha1:9271095cc5571e306d709ebf8eb7f0a388254d9d</id>
<content type='text'>
Add a new format specifier, '%D' that is identical in behaviour to '%d',
except that it does not include the ' (' prefix or ')' suffix provided
by '%d'.

Signed-off-by: Harry Jeffery &lt;harry@exec64.co.uk&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>pretty: share code between format_decoration and show_decorations</title>
<updated>2013-04-18T23:28:27Z</updated>
<author>
<name>Nguyễn Thái Ngọc Duy</name>
<email>pclouds@gmail.com</email>
</author>
<published>2013-04-18T23:08:43Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9d3f002f21f78576f3c31ae94ce78de54e305c95'/>
<id>urn:sha1:9d3f002f21f78576f3c31ae94ce78de54e305c95</id>
<content type='text'>
This also adds color support to format_decorations()

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>get_patch_filename(): split into two functions</title>
<updated>2012-12-22T07:55:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-12-22T06:06:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d28b5d47ab72a91d5090748f8f8baaf6ffa084fc'/>
<id>urn:sha1:d28b5d47ab72a91d5090748f8f8baaf6ffa084fc</id>
<content type='text'>
The function switched between two operating modes depending on the
NULL-ness of its two parameters, as a hacky way to share small part
of implementation, sacrificing cleanliness of the API.

Implement "fmt_output_subject()" function that takes a subject
string and gives the name for the output file, and on top of it,
implement "fmt_output_commit()" function that takes a commit and
gives the name for the output file.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>get_patch_filename(): simplify function signature</title>
<updated>2012-12-22T07:55:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2012-12-22T07:26:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=021f2f4c1aed011c664844408325fe683a4046a8'/>
<id>urn:sha1:021f2f4c1aed011c664844408325fe683a4046a8</id>
<content type='text'>
Most functions that emit to a strbuf take the strbuf as their first
parameter; make this function follow suit.

The serial number of the patch being emitted (nr) and suffix used
for patch filename (suffix) are both recorded in rev_info; drop
these separate parameters and pass the rev_info directly.

Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: refactor get_patch_filename</title>
<updated>2012-05-22T16:08:50Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2012-05-21T23:10:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=a21c2f94fb6e74ebddb5c78cf6b5f68983646530'/>
<id>urn:sha1:a21c2f94fb6e74ebddb5c78cf6b5f68983646530</id>
<content type='text'>
The get_patch_filename function expects a commit argument
and uses it to get the sanitized subject line when making a
patch filename. However, we also want to use this same
function for the cover letter, which does not have a commit
object. The current solution is to create a fake commit with
the subject "cover letter". Instead, let's make the
get_patch_filename interface more flexibile, and allow
passing a direct subject.

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>Allow customizable commit decorations colors</title>
<updated>2010-06-24T19:57:34Z</updated>
<author>
<name>Nazri Ramliy</name>
<email>ayiehere@gmail.com</email>
</author>
<published>2010-06-24T00:21:16Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5e11bee65f601ba97dc4c61c75fcb2f448fdcb1c'/>
<id>urn:sha1:5e11bee65f601ba97dc4c61c75fcb2f448fdcb1c</id>
<content type='text'>
Signed-off-by: Nazri Ramliy &lt;ayiehere@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>git-log: allow --decorate[=short|full]</title>
<updated>2009-08-18T20:14:17Z</updated>
<author>
<name>Lars Hjemli</name>
<email>hjemli@gmail.com</email>
</author>
<published>2009-08-15T14:23:12Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=33e7018c459e6583b899690cabd21c808ffd3c85'/>
<id>urn:sha1:33e7018c459e6583b899690cabd21c808ffd3c85</id>
<content type='text'>
Commit de435ac0 changed the behavior of --decorate from printing the
full ref (e.g., "refs/heads/master") to a shorter, more human-readable
version (e.g., just "master"). While this is nice for human readers,
external tools using the output from "git log" may prefer the full
version.

This patch introduces an extension to --decorate to allow the caller to
specify either the short or the full versions.

Signed-off-by: Lars Hjemli &lt;hjemli@gmail.com&gt;
Acked-by: Jeff King &lt;peff@peff.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: --attach/inline uses filename instead of SHA1</title>
<updated>2009-03-23T04:45:19Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2009-03-23T02:14:05Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=108dab2811701c20d6d6e8d9fe8af88e41d65d77'/>
<id>urn:sha1:108dab2811701c20d6d6e8d9fe8af88e41d65d77</id>
<content type='text'>
Currently when format-patch is used with --attach or --inline the patch
attachment has the SHA1 of the commit for its filename.  This replaces
the SHA1 with the filename used by format-patch when outputting to
files.

Fix tests relying on the SHA1 output and add a test showing how the
--suffix option affects the attachment filename output.

Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
