Steven Grimm <koreth@midwinter.com> wrote:Eh, that could mean a bunch of stat calls that it would be nice to avoid. The counter Junio (and git-gui) implements just does a readdir(). Reasonably cheap. Maybe just save a ".git/gc_last_auto" with the last object count of .git/objects/17, after repacking. If the count is over the gc.auto limit *and* is still over the limit after subtracting the ".git/gc_last_auto" value then consider that auto is required. This way the file is only consulted if we are really thinking about running a repack, and its only written to if we actually do the repack. So we only take the extra penalty if we are going to be taking a *really* big extra penalty by repacking. -- Shawn. - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Andrew Morton | -mm merge plans for 2.6.23 |
| Rafael J. Wysocki | [Bug #11207] VolanoMark regression with 2.6.27-rc1 |
| Zhang, Yanmin | AIM7 40% regression with 2.6.26-rc1 |
| Con Kolivas | [PATCH][RSDL-mm 0/7] RSDL cpu scheduler for 2.6.21-rc3-mm2 |
git: | |
| Gregory Haskins | [RFC PATCH 03/17] vbus: add connection-client helper infrastructure |
| David Woodhouse | [PATCH 03/30] solos: FPGA and firmware update support. |
| Natalie Protasevich | [BUG] New Kernel Bugs |
| Gerrit Renker | [PATCH 15/37] dccp: Set per-connection CCIDs via socket options |
