<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/commit.h, branch v1.2.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.2.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.2.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-01-28T08:09:39Z</updated>
<entry>
<title>pretty_print_commit(): pass commit object instead of commit-&gt;buffer.</title>
<updated>2006-01-28T08:09:39Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-27T09:54:59Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=3815f423ae39bf774de3c268c6d3e3b72128a4e5'/>
<id>urn:sha1:3815f423ae39bf774de3c268c6d3e3b72128a4e5</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>diff-tree: abbreviate merge parent object names with --abbrev --pretty.</title>
<updated>2006-01-28T08:09:38Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-25T10:37:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=b2d4c56f2f370481c80e478ac323ebb13eece807'/>
<id>urn:sha1:b2d4c56f2f370481c80e478ac323ebb13eece807</id>
<content type='text'>
When --abbrev is in effect, abbreviate the merge parent names
in prettyprinted output.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>describe: allow more than one revs to be named.</title>
<updated>2006-01-08T05:43:01Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-01-08T02:52:42Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f8f9c73c7d835ec1e5b665c66623aed49fcd4888'/>
<id>urn:sha1:f8f9c73c7d835ec1e5b665c66623aed49fcd4888</id>
<content type='text'>
The main loop was prepared to take more than one revs, but the actual
naming logic wad not (it used pop_most_recent_commit while forgetting
that the commit marks stay after it's done).

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Add --pretty=fuller</title>
<updated>2005-11-11T08:42:52Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-11-10T06:15:27Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ff56fe1ca7f43087fd84588af87179c2959d0cb3'/>
<id>urn:sha1:ff56fe1ca7f43087fd84588af87179c2959d0cb3</id>
<content type='text'>
git log without --pretty showed author and author-date, while
with --pretty=full showed author and committer but no dates.
The new formatting option, --pretty=fuller, shows both name and
timestamp for author and committer.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Avoid wasting memory in git-rev-list</title>
<updated>2005-09-15T21:57:52Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2005-09-15T21:43:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=60ab26de9970ce829c95eb11ebb407fe95780148'/>
<id>urn:sha1:60ab26de9970ce829c95eb11ebb407fe95780148</id>
<content type='text'>
As pointed out on the list, git-rev-list can use a lot of memory.

One low-hanging fruit is to free the commit buffer for commits that we
parse. By default, parse_commit() will save away the buffer, since a lot
of cases do want it, and re-reading it continually would be unnecessary.
However, in many cases the buffer isn't actually necessary and saving it
just wastes memory.

We could just free the buffer ourselves, but especially in git-rev-list,
we actually end up using the helper functions that automatically add
parent commits to the commit lists, so we don't actually control the
commit parsing directly.

Instead, just make this behaviour of "parse_commit()" a global flag.
Maybe this is a bit tasteless, but it's very simple, and it makes a
noticable difference in memory usage.

Before the change:

	[torvalds@g5 linux]$ /usr/bin/time git-rev-list v2.6.12..HEAD &gt; /dev/null
	0.26user 0.02system 0:00.28elapsed 99%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+3714minor)pagefaults 0swaps

after the change:

	[torvalds@g5 linux]$ /usr/bin/time git-rev-list v2.6.12..HEAD &gt; /dev/null
	0.26user 0.00system 0:00.27elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+2433minor)pagefaults 0swaps

note how the minor faults have decreased from 3714 pages to 2433 pages.
That's all due to the fewer anonymous pages allocated to hold the comment
buffers and their metadata.

Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add 'git show-branch'.</title>
<updated>2005-08-23T01:34:10Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-21T09:51:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f76412ed6dbf2f9863115ee38f4198368dbaf7b1'/>
<id>urn:sha1:f76412ed6dbf2f9863115ee38f4198368dbaf7b1</id>
<content type='text'>
The 'git show-branches' command turns out to be reasonably useful,
but painfully slow.  So rewrite it in C, using ideas from merge-base
while enhancing it a bit more.

 - Unlike show-branches, it can take --heads (show me all my
   heads), --tags (show me all my tags), or --all (both).

 - It can take --more=&lt;number&gt; to show beyond the merge-base.

 - It shows the short name for each commit in the extended SHA1
   syntax.

 - It can find merge-base for more than two heads.

Examples:

    $ git show-branch --more=6 HEAD

    is almost the same as "git log --pretty=oneline --max-count=6".

    $ git show-branch --merge-base master mhf misc

    finds the merge base of the three given heads.

    $ git show-branch master mhf misc

    shows logs from the top of these three branch heads, up to their
    common ancestor commit is shown.

    $ git show-branch --all --more=10

    is poor-man's gitk, showing all the tags and heads, and
    going back 10 commits beyond the merge base of those refs.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Introduce --pretty=oneline format.</title>
<updated>2005-08-10T05:28:23Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2005-08-09T05:15:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d87449c553262a24df26648633c7c73b2db7dcc6'/>
<id>urn:sha1:d87449c553262a24df26648633c7c73b2db7dcc6</id>
<content type='text'>
This introduces --pretty=oneline to git-rev-tree and
git-rev-list commands to show only the first line of the commit
message, without frills. 

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>[PATCH] Add a topological sort procedure to commit.c</title>
<updated>2005-07-06T17:19:04Z</updated>
<author>
<name>Jon Seymour</name>
<email>jon.seymour@gmail.com</email>
</author>
<published>2005-07-06T16:39:34Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ab580acea4b1b79daaca0c8727b810073a610e2a'/>
<id>urn:sha1:ab580acea4b1b79daaca0c8727b810073a610e2a</id>
<content type='text'>
This introduces an in-place topological sort procedure to commit.c.

Given a list of commits, sort_in_topological_order() will perform an in-place
topological sort of that list.

The invariant that applies to the resulting list is:

       a reachable from b =&gt; ord(b) &lt; ord(a)

This invariant is weaker than the --merge-order invariant, but is cheaper
to calculate (assuming the list has been identified) and will serve any
purpose where only a minimal topological order guarantee is required.

Signed-off-by: Jon Seymour &lt;jon.seymour@gmail.com&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>Make "insert_by_date()" match "commit_list_insert()"</title>
<updated>2005-07-06T16:31:17Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@g5.osdl.org</email>
</author>
<published>2005-07-06T16:31:17Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f755494cec27fed8c9693bb91c26762061518b0b'/>
<id>urn:sha1:f755494cec27fed8c9693bb91c26762061518b0b</id>
<content type='text'>
Same argument order, same return type.  This allows us to use a function
pointer to choose one over the other.
</content>
</entry>
<entry>
<title>Add "--pretty=full" format that also shows committer.</title>
<updated>2005-06-27T00:50:46Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@ppc970.osdl.org</email>
</author>
<published>2005-06-27T00:50:46Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=9b66ec04741b4030e7654dcb7b978a29a8214b31'/>
<id>urn:sha1:9b66ec04741b4030e7654dcb7b978a29a8214b31</id>
<content type='text'>
Also move the common implementation of parsing the --pretty argument
format into commit.c rather than having duplicates in diff-tree.c and
rev-list.c.
</content>
</entry>
</feed>
