Skip to content

add pre-auto-gc hook for git-gc --auto (try3)

Miklos Vajna git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3git-gc --auto: add pre-auto-gc hookbuiltin-gc.c+31 -00 replies
2/3Documentation/hooks: add pre-auto-gc hookDocumentation/hooks.txt+7 -00 replies
3/3contrib/hooks: add an example pre-auto-gc hookcontrib/hooks/pre-auto-gc-battery+39 -01 reply
3/3contrib/hooks: add an example pre-auto-gc hookcontrib/hooks/pre-auto-gc-battery+40 -04 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] add pre-auto-gc hook for git-gc --auto (try3)
Quoted 3 lines · Junio C Hamano
Quoted 3 lines

What is your opinion here?

1) Just don't add such an empty template for pre-auto-gc.

Ok, here it is. Ah and I forgot to mention in my previous mail that yes, checking for '1' in /sys/class/power_supply/AC/online is right, just checked.

Miklos Vajna (3):
git-gc --auto: add pre-auto-gc hook
Documentation/hooks: add pre-auto-gc hook
contrib/hooks: add an example pre-auto-gc hook

 Documentation/hooks.txt           |    7 ++++++
 builtin-gc.c                      |   31 +++++++++++++++++++++++++++++
 contrib/hooks/pre-auto-gc-battery |   39 +++++++++++++++++++++++++++++++++++++
 3 files changed, 77 insertions(+), 0 deletions(-)
 create mode 100644 contrib/hooks/pre-auto-gc-battery