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

Re: [PATCH/RFC] Documentation/git-gc.txt: add reference to githooks

From
Marc Branchaud <marcnarc@xiplink.com>
Date
Jun 28, 2010, 18:43 UTC
Message-ID
<4C28ED49.90906@xiplink.com>
In-Reply-To
<1277744834-7546-1-git-send-email-judge.packham@gmail.com>
How about also adding a templates/hooks--pre-auto-gc.sample file?
		M.
On 10-06-28 01:07 PM, Chris Packham wrote:
Show 31 quoted lines
> This advertises the existence of the 'pre-auto-gc' hook and adds a cross
> reference to where the hook is documented.
> 
> Signed-off-by: Chris Packham <judge.packham@gmail.com>
> ---
> I had to go fishing in the code to find out about the pre-auto-gc hook. From
> reading the git-gc man page it wasn't obvious to me that there would be a hook
> for 'git gc --auto'. The relevant config variables are mentioned so it seems
> logical to mention the hooks also. The only precedent I found for this was in
> the git-commit man page which has a section listing the hooks that are
> available.
> 
>  Documentation/git-gc.txt |    5 +++++
>  1 files changed, 5 insertions(+), 0 deletions(-)
> 
> diff --git a/Documentation/git-gc.txt b/Documentation/git-gc.txt
> index a9e0882..a514c52 100644
> --- a/Documentation/git-gc.txt
> +++ b/Documentation/git-gc.txt
> @@ -137,6 +137,11 @@ If you are expecting some objects to be collected and they aren't, check
>  all of those locations and decide whether it makes sense in your case to
>  remove those references.
>  
> +HOOKS
> +-----
> +This command can run `pre-auto-gc` hook.  See linkgit:githooks[5] for more
> +information.
> +
>  SEE ALSO
>  --------
>  linkgit:git-prune[1]
Previous: Chris PackhamNext: Junio C Hamano
Message 10 of 21 in “notify alternative to auto gc?”
  1. Karl StenerudJun 28, 2010
  2. Ævar Arnfjörð BjarmasonJun 28, 2010
  3. Karl StenerudJun 28, 2010
  4. Matthieu MoyJun 29, 2010
  5. Sam VilainJun 30, 2010
  6. Matthieu MoyJun 28, 2010
  7. Chris PackhamJun 28, 2010
  8. Karl StenerudJun 28, 2010
  9. Documentation/git-gc.txt: add reference to githooksChris Packham, Jun 28, 2010
  10. Marc BranchaudJun 28, 2010
  11. Junio C HamanoJun 29, 2010
  12. Chris PackhamJun 29, 2010
  13. Junio C HamanoJun 29, 2010
  14. Chris PackhamJun 29, 2010
  15. [PATCHv2] Documentation/git-gc.txt: add reference to githooksChris Packham, Jun 30, 2010
  16. David BrownSep 21, 2010
  17. Chris PackhamSep 21, 2010
  18. David BrownSep 21, 2010
  19. Re* [PATCH/RFC] Documentation/git-gc.txt: add reference to githooksJunio C Hamano, Sep 21, 2010
  20. Eric RaibleJun 28, 2010
  21. Jacob HelwigJun 28, 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.