Skip to content

add pre-auto-gc hook for git-gc --auto

Miklos Vajna git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4git-gc --auto: add pre-auto-gc hookbuiltin-gc.c+22 -00 replies
2/4git-gc: add a --no-verify option to bypass the pre-auto-gc hookDocumentation/git-gc.txt builtin-gc.c+7 -10 replies
3/4Documentation/hooks: add pre-auto-gc hookDocumentation/hooks.txt+10 -00 replies
4/4templates: add an example pre-auto-gc hooktemplates/hooks--pre-auto-gc+29 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] add pre-auto-gc hook for git-gc --auto
Quoted 2 lines · Linus Torvalds

How about making it more akin to a pre-auto-gc "hook" - run a script instead of hardcoding something like this!

Something like this?

Miklos Vajna (4):
git-gc --auto: add pre-auto-gc hook
git-gc: add a --no-verify option to bypass the pre-auto-gc hook Documentation/hooks: add pre-auto-gc hook
templates: add an example pre-auto-gc hook

 Documentation/git-gc.txt     |    4 ++++
 Documentation/hooks.txt      |   10 ++++++++++
 builtin-gc.c                 |   24 ++++++++++++++++++++++++
 templates/hooks--pre-auto-gc |   29 +++++++++++++++++++++++++++++
 4 files changed, 67 insertions(+), 0 deletions(-)
 create mode 100644 templates/hooks--pre-auto-gc