git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/4] Documentation/hooks: add pre-auto-gc hook
  2008-03-30 23:46 [PATCH] git gc --auto: defer on battery Linus Torvalds
@ 2008-03-31  9:36 ` Miklos Vajna
  0 siblings, 0 replies; 2+ messages in thread
From: Miklos Vajna @ 2008-03-31  9:36 UTC (permalink / raw)
  To: Linus Torvalds; +Cc: Bj?rn Steinbrink, Junio C Hamano, git

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
---
 Documentation/hooks.txt |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/Documentation/hooks.txt b/Documentation/hooks.txt
index 76b8d77..04ec352 100644
--- a/Documentation/hooks.txt
+++ b/Documentation/hooks.txt
@@ -276,3 +276,13 @@ probably enable this hook.
 Both standard output and standard error output are forwarded to
 `git-send-pack` on the other end, so you can simply `echo` messages
 for the user.
+
+pre-auto-gc
+-----------
+
+This hook is invoked by `git-gc --auto`, and can be bypassed with
+`\--no-verify` option.  It takes no parameter, and exiting with non-zero
+status from this script causes the `git-gc --auto` to abort.
+
+The default 'pre-auto-gc' hook, when enabled, defers auto repacking when
+you are on battery.
-- 
1.5.5.rc2.4.g283c6

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/4] Documentation/hooks: add pre-auto-gc hook
       [not found] <0a4fb03744d2a8c3e38030a29098e25823aed6bc.1206929014.git.vmiklos @frugalware.org>
@ 2008-04-01  5:02 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-04-01  5:02 UTC (permalink / raw)
  To: Miklos Vajna; +Cc: Linus Torvalds, Bj?rn Steinbrink, git

Miklos Vajna <vmiklos@frugalware.org> writes:

> +The default 'pre-auto-gc' hook, when enabled, defers auto repacking when
> +you are on battery.

I'd prefer not to have the Linux specific one in templates/hooks--*; it
would be a good addition to contrib/hooks/ though, if you use on_ac_power
as suggested.

In any case, we ship all hooks in templates _disabled_, and they should be
called "example hook", not "default hook".

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-04-01  5:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <0a4fb03744d2a8c3e38030a29098e25823aed6bc.1206929014.git.vmiklos @frugalware.org>
2008-04-01  5:02 ` [PATCH 3/4] Documentation/hooks: add pre-auto-gc hook Junio C Hamano
2008-03-30 23:46 [PATCH] git gc --auto: defer on battery Linus Torvalds
2008-03-31  9:36 ` [PATCH 3/4] Documentation/hooks: add pre-auto-gc hook Miklos Vajna

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).