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

[PATCH (resend)] Update git fsck --full short description to mention packs

From
Wesley J. Landaker <wjl@icecavern.net>
Date
Feb 5, 2010, 19:58 UTC
Message-ID
<201002051258.50732.wjl@icecavern.net>
The '--full' option to git fsck does two things:
  1) Check objects in packs
  2) Check alternate objects

This is documented in the git fsck manual; this patch reflects that in the short git fsck option help message as well.

Signed-off-by: Wesley J. Landaker <wjl@icecavern.net>
---
 builtin-fsck.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

I sent this patch a while back, and after the resulting discussion, the --full option was made the default. However, the short option help was still not updated to reflect the full documentation (and behavior) of git fsck.

(This is a resend. My apologies if you get this twice.)
diff --git a/builtin-fsck.c b/builtin-fsck.c
index 0e5faae..0929c7f 100644
--- a/builtin-fsck.c
+++ b/builtin-fsck.c
@@ -578,7 +578,7 @@ static struct option fsck_opts[] = {
 	OPT_BOOLEAN(0, "root", &show_root, "report root nodes"),
 	OPT_BOOLEAN(0, "cache", &keep_cache_objects, "make index objects head nodes"),
 	OPT_BOOLEAN(0, "reflogs", &include_reflogs, "make reflogs head nodes (default)"),
-	OPT_BOOLEAN(0, "full", &check_full, "also consider alternate objects"),
+	OPT_BOOLEAN(0, "full", &check_full, "also consider packs and alternate objects"),
 	OPT_BOOLEAN(0, "strict", &check_strict, "enable more strict checking"),
 	OPT_BOOLEAN(0, "lost-found", &write_lost_and_found,
 				"write dangling objects in .git/lost-found"),
-- 
1.6.6.1
Message 1 of 1 in “Update git fsck --full short description to mention packs”
  1. Update git fsck --full short description to mention packsWesley J. Landaker, Feb 5, 2010

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.