Skip to contentSkip to conversation

Don't save the commit buffer in git-describe.

PATCH In review Shawn O. Pearce 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 Don't save the commit buffer in git-describe.

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.

---
 describe.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
describe.c +1 -0
index f4029ee..3c2df03 100644
@@ -162,6 +162,7 @@ int main(int argc, char **argv)
 	}
 
 	setup_git_directory();
+	save_commit_buffer = 0;
 
 	if (argc <= i)
 		describe("HEAD", 1);
Signature · 1 line
1.4.4.4.gf027-dirty