diff options
author | John Cai <johncai86@gmail.com> | 2023-06-29 04:07:53 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-06-29 08:00:10 +0200 |
commit | d4f28279ada8c8dce6cb13a0c4a13b8d06000af8 (patch) | |
tree | a880914f7487c1baac2712a95c138f341c5c1d73 /Documentation/git-hash-object.txt | |
parent | Git 2.41 (diff) | |
download | git-d4f28279ada8c8dce6cb13a0c4a13b8d06000af8.tar.xz git-d4f28279ada8c8dce6cb13a0c4a13b8d06000af8.zip |
docs: add git hash-object -t option's possible values
The summary under the NAME section for git hash-object can mislead
readers to conclude that the command can only be used to create blobs,
whereas the description makes it clear that it can be used to create
objects, not just blobs. Let's clarify the one-line summary.
Further, the description for the option -t does not list out other types
that can be used when creating objects. Let's make this explicit by
listing out the different object types.
Signed-off-by: John Cai <johncai86@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-hash-object.txt')
-rw-r--r-- | Documentation/git-hash-object.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-hash-object.txt b/Documentation/git-hash-object.txt index 472b5bb995..8577f7a7d4 100644 --- a/Documentation/git-hash-object.txt +++ b/Documentation/git-hash-object.txt @@ -3,7 +3,7 @@ git-hash-object(1) NAME ---- -git-hash-object - Compute object ID and optionally creates a blob from a file +git-hash-object - Compute object ID and optionally create an object from a file SYNOPSIS @@ -25,7 +25,8 @@ OPTIONS ------- -t <type>:: - Specify the type (default: "blob"). + Specify the type of object to be created (default: "blob"). Possible + values are `commit`, `tree`, `blob`, and `tag`. -w:: Actually write the object into the object database. |