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

[PATCH] Recommend "git gc --auto" instead of "git prune"

From
John Lin via GitGitGadget <gitgitgadget@gmail.com>
Date
Jun 7, 2020, 16:18 UTC
Message-ID
<pull.651.git.1591546715913.gitgitgadget@gmail.com>
From: John Lin <johnlinp@gmail.com>
Signed-off-by: John Lin <johnlinp@gmail.com>
---
    Recommend "git gc --auto" instead of "git prune"
    
    Fix according to #642.
Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-651%2Fjohnlinp%2Ffix-git-gc-warning-message-v1
Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-651/johnlinp/fix-git-gc-warning-message-v1
Pull-Request: https://github.com/gitgitgadget/git/pull/651
 builtin/gc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/gc.c b/builtin/gc.c
index 8e0b9cf41b3..3833a3de332 100644
--- a/builtin/gc.c
+++ b/builtin/gc.c
@@ -692,7 +692,7 @@ int cmd_gc(int argc, const char **argv, const char *prefix)
 
 	if (auto_gc && too_many_loose_objects())
 		warning(_("There are too many unreachable loose objects; "
-			"run 'git prune' to remove them."));
+			"run 'git gc --auto' to remove them."));
 
 	if (!daemonized)
 		unlink(git_path("gc.log"));

base-commit: 20514004ddf1a3528de8933bc32f284e175e1012
-- 
gitgitgadget
Next: brian m. carlson
Message 1 of 5 in “Recommend "git gc --auto" instead of "git prune"”
  1. Recommend "git gc --auto" instead of "git prune"John Lin via GitGitGadget, Jun 7, 2020
  2. brian m. carlsonJun 7, 2020
  3. Junio C HamanoJun 7, 2020
  4. Denton LiuJun 7, 2020
  5. Junio C HamanoJun 8, 2020

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.