From 9b088c4e394df84232cfd37aea78349a495b09c1 Mon Sep 17 00:00:00 2001 From: Matthias Lederhofer Date: Fri, 19 Jan 2007 11:49:35 +0100 Subject: [PATCH] prune: --grace=time This option gives grace period to objects that are unreachable from the refs from getting pruned. The default value is 24 hours and may be changed using gc.prunegrace. Signed-off-by: Matthias Lederhofer Signed-off-by: Junio C Hamano --- Documentation/git-prune.txt | 9 ++++++++- builtin-prune.c | 31 ++++++++++++++++++++++++++++++- t/t1410-reflog.sh | 6 +++--- t/t5400-send-pack.sh | 4 ++-- t/t5700-clone-reference.sh | 4 ++-- t/t5710-info-alternate.sh | 6 +++--- 6 files changed, 48 insertions(+), 12 deletions(-) diff --git a/Documentation/git-prune.txt b/Documentation/git-prune.txt index a11e30309..fbd344da4 100644 --- a/Documentation/git-prune.txt +++ b/Documentation/git-prune.txt @@ -8,7 +8,7 @@ git-prune - Prunes all unreachable objects from the object database SYNOPSIS -------- -'git-prune' [-n] [--] [...] +'git-prune' [-n] [--grace=