Re: [PATCH] git gc --auto: defer on battery
- From
Linus Torvalds <torvalds@linux-foundation.org>
- Date
- Mar 30, 2008, 23:46 UTC
- Message-ID
- <alpine.LFD.1.00.0803301645020.14670@woody.linux-foundation.org>
- In-Reply-To
- <20080330232612.GA23063@atjola.homenet>
On Mon, 31 Mar 2008, Bj?rn Steinbrink wrote:
> > The /proc stuff is already deprecated IIRC, the new file to check on > Linux is /sys/class/power_supply/AC/online.
I would *seriously* suggest making this soem kind of generic callback and not Linux-specific.
How about making it more akin to a pre-auto-gc "hook" - run a script instead of hardcoding something like this!
Linus