git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] make git gc a first class citizen

From
Sam Ravnborg <sam@ravnborg.org>
Date
Apr 15, 2007, 09:21 UTC
Message-ID
<20070415092147.GA18278@uranus.ravnborg.org>
Let 'git gc' show up when executing 'git' with no arguments.
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
---

hpa recently asked git tree owners on kernel.org to pack their trees. As I usually do not pack my local trees I started to look into man pages, executing git etc and came up with 'git repack -d -l -f' but was told the 'git gc' was the better way to do it. This patch makes it easier to identify the 'git gc' command.

While investigating this I noticed that all git commands are linked with help.o has the full set of commands. Seems a bit waste of space but I did not tackle that.

	Sam
diff --git a/generate-cmdlist.sh b/generate-cmdlist.sh
index 975777f..e4e11ad 100755
--- a/generate-cmdlist.sh
+++ b/generate-cmdlist.sh
@@ -21,6 +21,7 @@ clone
 commit
 diff
 fetch
+gc
 grep
 init
 log
Message 1 of 1 in “make git gc a first class citizen”
  1. make git gc a first class citizenSam Ravnborg, Apr 15, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.