<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/log-tree.h, 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-03-23T04:45:19Z</updated>
<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>Add a 'source' decorator for commits</title>
<updated>2008-11-04T08:08:03Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@linux-foundation.org</email>
</author>
<published>2008-10-27T19:51:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=0f3a290b89b89bb5375cf5019b067e4a99f02620'/>
<id>urn:sha1:0f3a290b89b89bb5375cf5019b067e4a99f02620</id>
<content type='text'>
We already support decorating commits by tags or branches that point to
them, but especially when we are looking at multiple branches together,
we sometimes want to see _how_ we reached a particular commit.

We can abuse the '-&gt;util' field in the commit to keep track of that as
we walk the commit lists, and get a reasonably useful view into which
branch or tag first reaches that commit.

Of course, if the commit is reachable through multiple sources (which is
common), our particular choice of "first" reachable is entirely random
and depends on the particular path we happened to follow.

Signed-off-by: Linus Torvalds &lt;torvalds@linux-foundation.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>move load_ref_decorations() to log-tree.c and export it</title>
<updated>2008-09-05T00:01:41Z</updated>
<author>
<name>René Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2008-09-04T21:39:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=cab4feb67db64d3d201145d9748b33d148f96185'/>
<id>urn:sha1:cab4feb67db64d3d201145d9748b33d148f96185</id>
<content type='text'>
log-tree.c is the ideal place for load_ref_decorations() and its
helper functions to live in, because the variable name_decoration
they're operating on is already located there, so move them thither.

Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Remove dead code: show_log() sep argument and diff_options.msg_sep</title>
<updated>2008-05-03T18:48:03Z</updated>
<author>
<name>Adam Simpkins</name>
<email>adam@adamsimpkins.net</email>
</author>
<published>2008-04-29T08:32:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=028656552bc758b192027c25a1143f1c6ca66d64'/>
<id>urn:sha1:028656552bc758b192027c25a1143f1c6ca66d64</id>
<content type='text'>
These variables were made unnecessary by commit
3969cf7db1a13a78f3b7a36d8c1084bbe0a53459.

Signed-off-by: Adam Simpkins &lt;adam@adamsimpkins.net&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>Merge branch 'maint'</title>
<updated>2008-03-15T07:09:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>gitster@pobox.com</email>
</author>
<published>2008-03-15T07:09:20Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=267123b4299ea2c2f090ef169f9fc5039897cd72'/>
<id>urn:sha1:267123b4299ea2c2f090ef169f9fc5039897cd72</id>
<content type='text'>
* maint:
  format-patch: generate MIME header as needed even when there is format.header
</content>
</entry>
<entry>
<title>Export some email and pretty-printing functions</title>
<updated>2008-02-19T08:56:46Z</updated>
<author>
<name>Daniel Barkalow</name>
<email>barkalow@iabervon.org</email>
</author>
<published>2008-02-19T03:56:08Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b02bd65f679024ce25afeddf7e96d6d7aea5fca6'/>
<id>urn:sha1:b02bd65f679024ce25afeddf7e96d6d7aea5fca6</id>
<content type='text'>
These will be used for generating the cover letter in addition to the
patch emails.

Signed-off-by: Daniel Barkalow &lt;barkalow@iabervon.org&gt;
Signed-off-by: Junio C Hamano &lt;gitster@pobox.com&gt;
</content>
</entry>
<entry>
<title>rev-list: implement --bisect-all</title>
<updated>2007-10-27T06:27:23Z</updated>
<author>
<name>Christian Couder</name>
<email>chriscool@tuxfamily.org</email>
</author>
<published>2007-10-22T05:47:56Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=50e62a8e703b78fbe59d5f98b1bb36464570a815'/>
<id>urn:sha1:50e62a8e703b78fbe59d5f98b1bb36464570a815</id>
<content type='text'>
This is Junio's patch with some stuff to make --bisect-all
compatible with --bisect-vars.

This option makes it possible to see all the potential
bisection points. The best ones are displayed first.

Signed-off-by: Christian Couder &lt;chriscool@tuxfamily.org&gt;
Signed-off-by: Shawn O. Pearce &lt;spearce@spearce.org&gt;
</content>
</entry>
<entry>
<title>Add msg_sep to diff_options</title>
<updated>2006-06-26T21:58:41Z</updated>
<author>
<name>Timo Hirvonen</name>
<email>tihirvon@gmail.com</email>
</author>
<published>2006-06-25T10:54:14Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=39bc9a6c2051a9fc31dc9b34b40bdd3dd94a8afb'/>
<id>urn:sha1:39bc9a6c2051a9fc31dc9b34b40bdd3dd94a8afb</id>
<content type='text'>
Add msg_sep variable to struct diff_options.  msg_sep is printed after
commit message.  Default is "\n", format-patch sets it to "---\n".

This also removes the second argument from show_log() because all
callers derived it from the first argument:

    show_log(rev, rev-&gt;loginfo, ...

Signed-off-by: Timo Hirvonen &lt;tihirvon@gmail.com&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Log message printout cleanups</title>
<updated>2006-04-17T22:18:25Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-04-17T18:59:32Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9153983310a169a340bd1023dccafd80b70b05bc'/>
<id>urn:sha1:9153983310a169a340bd1023dccafd80b70b05bc</id>
<content type='text'>
On Sun, 16 Apr 2006, Junio C Hamano wrote:
&gt;
&gt; In the mid-term, I am hoping we can drop the generate_header()
&gt; callchain _and_ the custom code that formats commit log in-core,
&gt; found in cmd_log_wc().

Ok, this was nastier than expected, just because the dependencies between
the different log-printing stuff were absolutely _everywhere_, but here's
a patch that does exactly that.

The patch is not very easy to read, and the "--patch-with-stat" thing is
still broken (it does not call the "show_log()" thing properly for
merges). That's not a new bug. In the new world order it _should_ do
something like

	if (rev-&gt;logopt)
		show_log(rev, rev-&gt;logopt, "---\n");

but it doesn't. I haven't looked at the --with-stat logic, so I left it
alone.

That said, this patch removes more lines than it adds, and in particular,
the "cmd_log_wc()" loop is now a very clean:

	while ((commit = get_revision(rev)) != NULL) {
		log_tree_commit(rev, commit);
		free(commit-&gt;buffer);
		commit-&gt;buffer = NULL;
	}

so it doesn't get much prettier than this. All the complexity is entirely
hidden in log-tree.c, and any code that needs to flush the log literally
just needs to do the "if (rev-&gt;logopt) show_log(...)" incantation.

I had to make the combined_diff() logic take a "struct rev_info" instead
of just a "struct diff_options", but that part is pretty clean.

This does change "git whatchanged" from using "diff-tree" as the commit
descriptor to "commit", and I changed one of the tests to reflect that new
reality. Otherwise everything still passes, and my other tests look fine
too.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
