1
0
Fork 0
mirror of https://github.com/git/git.git synced 2024-05-28 15:06:11 +02:00
git/contrib/hooks
Adam Borowski 781262c5e7 hooks/pre-auto-gc-battery: allow gc to run on non-laptops
Desktops and servers tend to have no power sensor, thus on_ac_power returns
255 ("unknown").  Thus, let's take any answer other than 1 ("battery") as
no contraindication to run gc.

If that tool returns "unknown", there's no point in querying other sources
as it already queried them, and is smarter than us (can handle multiple
adapters).

Reported by: Xin Li <delphij@google.com>
Signed-off-by: Adam Borowski <kilobyte@angband.pl>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
2018-02-28 14:24:46 -08:00
..
multimail Spelling fixes 2017-06-27 10:35:49 -07:00
post-receive-email mark contributed hooks executable 2013-11-25 15:01:22 -08:00
pre-auto-gc-battery hooks/pre-auto-gc-battery: allow gc to run on non-laptops 2018-02-28 14:24:46 -08:00
setgitperms.perl mark contributed hooks executable 2013-11-25 15:01:22 -08:00
update-paranoid mark contributed hooks executable 2013-11-25 15:01:22 -08:00