Re: [PATCH] git gc --auto: defer on battery
- From
Björn Steinbrink <b.steinbrink@gmx.de>
- Date
- Mar 31, 2008, 00:00 UTC
- Message-ID
- <20080331000012.GB23259@atjola.homenet>
- In-Reply-To
- <alpine.LFD.1.00.0803301645020.14670@woody.linux-foundation.org>
On 2008.03.30 16:46:51 -0700, Linus Torvalds wrote:
Show 9 quoted lines
> > > 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.
I didn't meant to make that Linux-specific, I just wanted to mention that the /proc stuff might break rather "soon", and that the code should also check the the sysfs stuff.
> How about making it more akin to a pre-auto-gc "hook" - run a script > instead of hardcoding something like this!
Sounds nice.
Björn