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

Re: [PATCH 2/4] git-gc: add a --no-verify option to bypass the pre-auto-gc hook

From
Junio C Hamano <gitster@pobox.com>
Date
Apr 1, 2008, 05:02 UTC
Message-ID
<7v1w5qjhfk.fsf@gitster.siamese.dyndns.org>
Miklos Vajna <vmiklos@frugalware.org> writes:
Show 11 quoted lines
> diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt
> index d424a4e..396da5c 100644
> --- a/Documentation/git-gc.txt
> +++ b/Documentation/git-gc.txt
> @@ -62,6 +62,10 @@ automatic consolidation of packs.
>  --quiet::
>  	Suppress all progress reports.
>  
> +--no-verify::
> +	This option bypasses the pre-auto-gc hook.
> +	See also link:hooks.html[hooks].

The purpose of "gc --auto" is not about running it interactively yourself, but to sprinkle calls to it at strategic places in your script. If this option is about disabling the hook temporarily for one-shot, it is not like it is easier to rewrite such script to add --no-verify than actually chmod -x the hook yourself. So I am puzzled what the expected use is for this option.

Message 1 of 1 in “Re: [PATCH 2/4] git-gc: add a --no-verify option to bypass the pre-auto-gc hook”
  1. Junio C HamanoApr 1, 2008

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.