Skip to content

Commit

Permalink
Don't save the commit buffer in git-describe.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Shawn O. Pearce authored and Junio C Hamano committed Jan 10, 2007
1 parent e05db0f commit 8c599c7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions describe.c
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ int main(int argc, char **argv)
}

setup_git_directory();
save_commit_buffer = 0;

if (argc <= i)
describe("HEAD", 1);
Expand Down

0 comments on commit 8c599c7

Please sign in to comment.