<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/log-tree.c, branch v1.6.4</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.6.4</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.6.4'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2009-07-01T18:16:54Z</updated>
<entry>
<title>log-tree: fix confusing comment</title>
<updated>2009-07-01T18:16:54Z</updated>
<author>
<name>Jeff King</name>
<email>peff@peff.net</email>
</author>
<published>2009-07-01T07:26:28Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8715227df65071b38a3c91553cdb51365aa5cfd9'/>
<id>urn:sha1:8715227df65071b38a3c91553cdb51365aa5cfd9</id>
<content type='text'>
This comment mentions the case where use_terminator is set,
but this case is not handled at all by this chunk of code.

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>Prettify log decorations even more</title>
<updated>2009-05-14T03:55:49Z</updated>
<author>
<name>Felipe Contreras</name>
<email>felipe.contreras@gmail.com</email>
</author>
<published>2009-05-13T21:32:53Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=de435ac0f633b1f68dba2970cb7fa019171e40fe'/>
<id>urn:sha1:de435ac0f633b1f68dba2970cb7fa019171e40fe</id>
<content type='text'>
"tag: v1.6.2.5" looks much better than "tag: refs/tags/v1.6.2.5".

Signed-off-by: Felipe Contreras &lt;felipe.contreras@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>log-tree: fix patch filename computation in "git format-patch"</title>
<updated>2009-03-27T08:10:27Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2009-03-27T00:13:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b09b868f7fee689483d00bea3d52c0f14a80386c'/>
<id>urn:sha1:b09b868f7fee689483d00bea3d52c0f14a80386c</id>
<content type='text'>
When using "git format-patch", "get_patch_filename" in
"log-tree.c" calls "strbuf_splice" that could die with
the following message:

"`pos + len' is too far after the end of the buffer"

if you have:

	buf-&gt;len &lt; start_len + FORMAT_PATCH_NAME_MAX

but:

	buf-&gt;len + suffix_len &gt; start_len + FORMAT_PATCH_NAME_MAX

This patch tries to get rid of that bug.

[jc: w/ simplified logic]

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>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>
<entry>
<title>format-patch: move get_patch_filename() into log-tree</title>
<updated>2009-03-23T04:42:05Z</updated>
<author>
<name>Stephen Boyd</name>
<email>bebarino@gmail.com</email>
</author>
<published>2009-03-23T02:14:04Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6fa8e6278b210bfa56fcb54ed38d2b485350e7c6'/>
<id>urn:sha1:6fa8e6278b210bfa56fcb54ed38d2b485350e7c6</id>
<content type='text'>
Signed-off-by: Stephen Boyd &lt;bebarino@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'tr/format-patch-thread'</title>
<updated>2009-03-11T20:48:07Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2009-03-11T20:48:07Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=5a5bd23486c5d8721f4654eadec75213d3dc074f'/>
<id>urn:sha1:5a5bd23486c5d8721f4654eadec75213d3dc074f</id>
<content type='text'>
* tr/format-patch-thread:
  format-patch: support deep threading
  format-patch: thread as reply to cover letter even with in-reply-to
  format-patch: track several references
  format-patch: threading test reactivation

Conflicts:
	builtin-log.c
</content>
</entry>
<entry>
<title>Move local variables to narrower scopes</title>
<updated>2009-03-08T04:52:23Z</updated>
<author>
<name>Benjamin Kramer</name>
<email>benny.kra@googlemail.com</email>
</author>
<published>2009-03-07T20:02:26Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=fd13b21f52b499ff6fa951ce27d4b9c9f0653087'/>
<id>urn:sha1:fd13b21f52b499ff6fa951ce27d4b9c9f0653087</id>
<content type='text'>
These weren't used outside and can be safely moved

Signed-off-by: Benjamin Kramer &lt;benny.kra@googlemail.com&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>format-patch: track several references</title>
<updated>2009-02-22T04:26:03Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-02-19T21:26:31Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b079c50e03a812f5c8197b8f38e0a5fe6dd31321'/>
<id>urn:sha1:b079c50e03a812f5c8197b8f38e0a5fe6dd31321</id>
<content type='text'>
Currently, format-patch can only track a single reference (the
In-Reply-To:) for each mail.  To ensure proper threading, we should
list all known references for every mail.

Change the rev_info.ref_message_id field to a string_list, so that we
can append references at will, and change the output formatting
routines to print all of them in the References: header.  The last
entry in the list is implicitly assumed to be the In-Reply-To:, which
gives output consistent with RFC 2822:

   The "References:" field will contain the contents of the parent's
   "References:" field (if any) followed by the contents of the
   parent's "Message-ID:" field (if any).

Note that this is just preparatory work; nothing uses it yet, so all
"References:" fields in the output are still only one deep.

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>log: do not print ellipses with --abbrev-commit</title>
<updated>2009-02-14T01:18:22Z</updated>
<author>
<name>Thomas Rast</name>
<email>trast@student.ethz.ch</email>
</author>
<published>2009-02-13T22:10:41Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=7fcda9201e192413c2e63fe35ce6664dbc81705d'/>
<id>urn:sha1:7fcda9201e192413c2e63fe35ce6664dbc81705d</id>
<content type='text'>
'git log --abbrev-commit' added an ellipsis to all commit names that
were abbreviated.  This was particularly annoying if you wanted to
cut&amp;paste the sha1 from the terminal, since selecting by word would
pick up '...'  too.

So use find_unique_abbrev() instead of diff_unique_abbrev() in all
log-related commit sha1 printing routines, and also change the
formatting of the 'Merge: parent1 parent2' line output via
pretty_print_commit().

Signed-off-by: Thomas Rast &lt;trast@student.ethz.ch&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Fix machine-parseability of 'git log --source'</title>
<updated>2008-11-16T08:24:41Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2008-11-15T18:02:01Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=8c4021abfd170278d1a3431e2777bedd0c01fbb1'/>
<id>urn:sha1:8c4021abfd170278d1a3431e2777bedd0c01fbb1</id>
<content type='text'>
The space between the commit and the source attribute is not easily
machine-parseable: if we combine --source with --parents and give a SHA1
as a starting point, it's unnecessarily hard to see where the list of
parents ends and the source decoration begins.

Example:
	git show --parents --source $(git rev-list HEAD)

which is admittedly contrived, but can easily happen in scripting.

So use a &lt;tab&gt; instead of a space as the source separator.

The other decorations didn't have this issue, because they were surrounded
by parenthesis, so it's obvious that they aren't parent SHA1's.

It so happens that _visually_ this makes no difference for "git log
--source", since "commit &lt;40-char SHA1&gt;" is 47 characters, so both a space
and a &lt;tab&gt; will end up showing as a single commit. Of course, with
'--pretty=oneline' or '--parents' or '--abbrev-commit' you'll see the
difference.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
</feed>
