Re: [PATCH v2] gc: reject if another gc is running, unless --force is given

2013-08-03 Thread Johannes Sixt
Am 03.08.2013 12:01, schrieb Duy Nguyen: > On Sat, Aug 03, 2013 at 11:49:02AM +0200, Johannes Sixt wrote: >> Am 03.08.2013 08:21, schrieb Nguyễn Thái Ngọc Duy: >>> I changed mingw.h to add a stub uname() because I don't think MinGW >>> port has that function, but that's totally untested. >> >> Th

Re: [PATCH v2] gc: reject if another gc is running, unless --force is given

2013-08-03 Thread Duy Nguyen
On Sat, Aug 3, 2013 at 2:52 PM, Ramkumar Ramachandra wrote: >> + time(NULL) - st.st_mtime <= 12 * 3600) { > > Quick question: is this kind of file-lifetime used anywhere else in git.git? I don't think so. -- Duy -- To unsubscribe from this list: send the line "unsubscribe git" in the b

Re: [PATCH v2] gc: reject if another gc is running, unless --force is given

2013-08-03 Thread Duy Nguyen
On Sat, Aug 03, 2013 at 11:49:02AM +0200, Johannes Sixt wrote: > Am 03.08.2013 08:21, schrieb Nguyễn Thái Ngọc Duy: > > I changed mingw.h to add a stub uname() because I don't think MinGW > > port has that function, but that's totally untested. > > Thanks, but we don't have kill(pid, 0), either

Re: [PATCH v2] gc: reject if another gc is running, unless --force is given

2013-08-03 Thread Johannes Sixt
Am 03.08.2013 08:21, schrieb Nguyễn Thái Ngọc Duy: > I changed mingw.h to add a stub uname() because I don't think MinGW > port has that function, but that's totally untested. Thanks, but we don't have kill(pid, 0), either :-( -- Hannes -- To unsubscribe from this list: send the line "unsubscr

Re: [PATCH v2] gc: reject if another gc is running, unless --force is given

2013-08-03 Thread Ramkumar Ramachandra
Nguyễn Thái Ngọc Duy wrote: > This may happen when `git gc --auto` is run automatically, then the > user, to avoid wait time, switches to a new terminal, keeps working > and `git gc --auto` is started again because the first gc instance has > not clean up the repository. > > This patch tries to avo

[PATCH v2] gc: reject if another gc is running, unless --force is given

2013-08-02 Thread Nguyễn Thái Ngọc Duy
This may happen when `git gc --auto` is run automatically, then the user, to avoid wait time, switches to a new terminal, keeps working and `git gc --auto` is started again because the first gc instance has not clean up the repository. This patch tries to avoid multiple gc running, especially in -