From 1bb914603a0f151669de2c31671f6c878c5eb79f Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 21 Jan 2007 21:24:05 -0800 Subject: [PATCH 1/7] Documentation/tutorial-2: Fix interesting typo in an example. Marco Candrian noticed that one cat-file example refers to a blob object that is never used in the example sequence. The bug is interesting in that the output from the botched sample command is consistent with the incorrect blob object name ;-). Signed-off-by: Junio C Hamano --- Documentation/tutorial-2.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/tutorial-2.txt b/Documentation/tutorial-2.txt index f48894c9a2..f363d17f0b 100644 --- a/Documentation/tutorial-2.txt +++ b/Documentation/tutorial-2.txt @@ -343,8 +343,8 @@ And, as you can see with cat-file, this new entry refers to the current contents of the file: ------------------------------------------------ -$ git cat-file blob a6b11f7a -goodbye, word +$ git cat-file blob 8b9743b2 +goodbye, world ------------------------------------------------ The "status" command is a useful way to get a quick summary of the From 026aa93818a536c819a94aae5bbefe1b6251fe0e Mon Sep 17 00:00:00 2001 From: Junio C Hamano Date: Sun, 21 Jan 2007 21:29:44 -0800 Subject: [PATCH 2/7] Revert "prune: --grace=time" This reverts commit 9b088c4e394df84232cfd37aea78349a495b09c1. Protecting 'mature' objects does not make it any safer. We should admit that git-prune is inherently unsafe when run in parallel with other operations without involving unwarranted locking overhead, and with the latest git, even rebase and reset would not immediately create crufts anyway. --- 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, 12 insertions(+), 48 deletions(-) diff --git a/Documentation/git-prune.txt b/Documentation/git-prune.txt index fbd344da40..a11e303094 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] [--grace=