threads / patch / 16938

patchDocumentation/git-rev-parse.txt: Clarify minimum length=4

Subject: [PATCH] Documentation/git-rev-parse.txt: Clarify minimum length=4

## tl;dr

One message between Dec 31, 2008 and Dec 31, 2008. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

jidanni@jidanni.org· Dec 31, 2008, 02:38 UTC · lore

Here I merely repeat "The minimum length is 4." from another part of the page. However I do it in a critical spot, else users will think that there is just no dress code for how short one's strings can be.

Proof: only the last line of:
git init
touch z
git add z
git cat-file -t e
git cat-file -t e6
git cat-file -t e69
git cat-file -t e69d
will finally output "blob".
Signed-off-by: jidanni <jidanni@jidanni.org>
---
 Documentation/git-rev-parse.txt |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
Show changes to Documentation/git-rev-parse.txt +1 −0
diff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt
index 2921da3..8a4cdfc 100644
--- a/Documentation/git-rev-parse.txt
+++ b/Documentation/git-rev-parse.txt
@@ -154,6 +154,7 @@ blobs contained in a commit.
   E.g. dae86e1950b1277e545cee180551750029cfe735 and dae86e both
   name the same commit object if there are no other object in
   your repository whose object name starts with dae86e.
+  The minimum length is 4.
 
 * An output from 'git-describe'; i.e. a closest tag, optionally
   followed by a dash and a number of commits, followed by a dash, a
-- 
1.6.0.6

← back to recent threads