Code

Don't save the commit buffer in git-describe.
authorShawn O. Pearce <spearce@spearce.org>
Wed, 10 Jan 2007 11:36:29 +0000 (06:36 -0500)
committerJunio C Hamano <junkio@cox.net>
Wed, 10 Jan 2007 16:26:50 +0000 (08:26 -0800)
The commit buffer (message of the commit) is not actually
used by the git-describe process.  We can save some memory
by not keeping it around.

Signed-off-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <junkio@cox.net>
describe.c

index f4029ee74e80305e9ec9e5793d2e12c07096f45a..3c2df037eb1d5db303d64fa9743df61425790a9a 100644 (file)
@@ -162,6 +162,7 @@ int main(int argc, char **argv)
        }
 
        setup_git_directory();
+       save_commit_buffer = 0;
 
        if (argc <= i)
                describe("HEAD", 1);