<feed xmlns='http://www.w3.org/2005/Atom'>
<title>git/git.c, branch v1.3.2</title>
<subtitle>Mirror of https://git.kernel.org/pub/scm/git/git.git/
</subtitle>
<id>https://git.shady.money/git/atom?h=v1.3.2</id>
<link rel='self' href='https://git.shady.money/git/atom?h=v1.3.2'/>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/'/>
<updated>2006-04-18T18:29:33Z</updated>
<entry>
<title>diff --stat: make sure to set recursive.</title>
<updated>2006-04-18T18:29:33Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-18T18:29:33Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f56ef54174598d5362d0446c5a560cb5892537c2'/>
<id>urn:sha1:f56ef54174598d5362d0446c5a560cb5892537c2</id>
<content type='text'>
Just like "patch" format always needs recursive, "diffstat"
format does not make sense without setting recursive.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Support "git cmd --help" syntax</title>
<updated>2006-04-16T01:17:46Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-04-15T18:13:49Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=1cd95087c331e17c44a8b62f0614d55e621dcfd4'/>
<id>urn:sha1:1cd95087c331e17c44a8b62f0614d55e621dcfd4</id>
<content type='text'>
The "--help" argument is special, in that it is (along with "--version")
in that is taken by the "git" program itself rather than the sub-command,
and thus we've had the syntax "git --help cmd".

However, as anybody who has ever used CVS or some similar devil-spawn
program, it's confusing as h*ll when options before the sub-command act
differently from options after the sub-command, so this quick hack just
makes it acceptable to do "git cmd --help" instead, and get the exact same
result.

It may be hacky, but it's simple and does the trick.

Of course, this does not help if you use one of the non-builtin commands
without using the "git" helper. Ie you won't be getting a man-page just
because you do "git-rev-list --help". Don't expect us to be quite _that_
helpful.

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>diff --stat: do not do its own three-dashes.</title>
<updated>2006-04-15T21:06:42Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-15T21:02:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=6f4780f9dfd3bc6b23f9ea66b3d49577e0a0c2f9'/>
<id>urn:sha1:6f4780f9dfd3bc6b23f9ea66b3d49577e0a0c2f9</id>
<content type='text'>
I missed that "git-diff-* --stat" spits out three-dash separator
on its own without being asked.  Remove it.

When we output commit log followed by diff, perhaps --patch-with-stat,
for downstream consumer, we _would_ want the three-dash between
the message and the diff material, but that logic belongs to the
caller, not diff generator.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Use less memory in "git log"</title>
<updated>2006-04-13T18:26:56Z</updated>
<author>
<name>Linus Torvalds</name>
<email>torvalds@osdl.org</email>
</author>
<published>2006-04-13T17:01:02Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f43ba60e2c3bec4925eee229fa0f420dd1296f0c'/>
<id>urn:sha1:f43ba60e2c3bec4925eee229fa0f420dd1296f0c</id>
<content type='text'>
This trivially avoids keeping the commit message data around after we
don't need it any more, avoiding a continually growing "git log" memory
footprint.

It's not a huge deal, but it's somewhat noticeable. For the current kernel
tree, doing a full "git log" I got

 - before: /usr/bin/time git log &gt; /dev/null
	0.81user 0.02system 0:00.84elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+8851minor)pagefaults 0swaps

 - after: /usr/bin/time git log &gt; /dev/null
	0.79user 0.03system 0:00.83elapsed 100%CPU (0avgtext+0avgdata 0maxresident)k
	0inputs+0outputs (0major+5039minor)pagefaults 0swaps

ie the touched pages dropped from 8851 to 5039. For the historic kernel
archive, the numbers are 18357-&gt;11037 minor page faults.

We could/should in theory free the commits themselves, but that's really a
lot harder, since during revision traversal we may hit the same commit
twice through different children having it as a parent, even after we've
shown it once (when that happens, we'll silently ignore it next time, but
we still need the "struct commit" to know).

And as the commit message data is clearly the biggest part of the commit,
this is the really easy 60% solution.

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>git-log: do not output excess blank line between commits</title>
<updated>2006-04-13T07:26:21Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-13T07:26:21Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=d53352422b5f2ac3cfb86f5f363d6f167824ac52'/>
<id>urn:sha1:d53352422b5f2ac3cfb86f5f363d6f167824ac52</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>blame and friends: adjust to multiple pathspec change.</title>
<updated>2006-04-11T02:17:31Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-11T01:14:54Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=c4e05b1a2290c605e68e6dac5e2a580e6d4080b7'/>
<id>urn:sha1:c4e05b1a2290c605e68e6dac5e2a580e6d4080b7</id>
<content type='text'>
This makes things that include revision.h build again.

Blame is also built, but I am not sure how well it works (or how
well it worked to begin with) -- it was relying on tree-diff to
be using whatever pathspec was used the last time, which smells
a bit suspicious.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git log --full-diff</title>
<updated>2006-04-10T23:45:19Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-10T23:40:40Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=477f2b41310c4b1040a9e7f72720b9c39d82caf9'/>
<id>urn:sha1:477f2b41310c4b1040a9e7f72720b9c39d82caf9</id>
<content type='text'>
Without this flag, "git log -p paths..." shows commits that
touch the specified paths, and diffs about the same specified
paths.  With this, the full diff is shown for commits that touch
the specified paths.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git log [diff-tree options]...</title>
<updated>2006-04-09T08:59:03Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-09T08:59:03Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=52b70d56bd23811003a72866cc23a0a44b9da1b7'/>
<id>urn:sha1:52b70d56bd23811003a72866cc23a0a44b9da1b7</id>
<content type='text'>
And this makes "git log" to take common diff-tree options, so
that it can be used as "git whatchanged".

The recent revision walker updates by Linus to make path
limiting low-latency helps this quite a bit.

Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>git-log: match rev-list --abbrev and --abbrev-commit</title>
<updated>2006-04-09T03:32:40Z</updated>
<author>
<name>Junio C Hamano</name>
<email>junkio@cox.net</email>
</author>
<published>2006-04-08T05:34:11Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=f0853837d6ee69dccfa59222a0e869de94bdddc6'/>
<id>urn:sha1:f0853837d6ee69dccfa59222a0e869de94bdddc6</id>
<content type='text'>
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
<entry>
<title>Fix sparse warnings about non-ANSI function prototypes</title>
<updated>2006-04-02T19:58:47Z</updated>
<author>
<name>Rene Scharfe</name>
<email>rene.scharfe@lsrfire.ath.cx</email>
</author>
<published>2006-04-02T11:13:10Z</published>
<link rel='alternate' type='text/html' href='https://git.shady.money/git/commit/?id=ec26b4d6b004b6529c79e995a543945076c683aa'/>
<id>urn:sha1:ec26b4d6b004b6529c79e995a543945076c683aa</id>
<content type='text'>
Signed-off-by: Rene Scharfe &lt;rene.scharfe@lsrfire.ath.cx&gt;
Signed-off-by: Junio C Hamano &lt;junkio@cox.net&gt;
</content>
</entry>
</feed>
