OSDN Git Service

git-gc.txt: expand discussion of races with other processes
authorMatt McCutchen <matt@mattmccutchen.net>
Tue, 15 Nov 2016 19:08:51 +0000 (14:08 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 16 Nov 2016 21:42:17 +0000 (13:42 -0800)
commitf1350d0c125a1e6a73e3b6461fa90c77843c5f74
tree41e3d58e1632d5d3d417bb7b79075a3015dcd4fb
parent0b65a8dbdb38962e700ee16776a3042beb489060
git-gc.txt: expand discussion of races with other processes

In general, "git gc" may delete objects that another concurrent process
is using but hasn't created a reference to.  Git has some mitigations,
but they fall short of a complete solution.  Document this in the
git-gc(1) man page and add a reference from the documentation of the
gc.pruneExpire config variable.

Based on a write-up by Jeff King:

http://marc.info/?l=git&m=147922960131779&w=2

Signed-off-by: Matt McCutchen <matt@mattmccutchen.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Documentation/config.txt
Documentation/git-gc.txt