diff options
Diffstat (limited to 'man1/git-rev-parse.1')
-rw-r--r-- | man1/git-rev-parse.1 | 42 |
1 files changed, 39 insertions, 3 deletions
diff --git a/man1/git-rev-parse.1 b/man1/git-rev-parse.1 index 96a68c91e..da7351040 100644 --- a/man1/git-rev-parse.1 +++ b/man1/git-rev-parse.1 @@ -2,12 +2,12 @@ .\" Title: git-rev-parse .\" Author: [FIXME: author] [see http://www.docbook.org/tdg5/en/html/author] .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/> -.\" Date: 2024-03-25 +.\" Date: 2024-03-28 .\" Manual: Git Manual -.\" Source: Git 2.44.0.368.gc75fd8d815 +.\" Source: Git 2.44.0.413.gd6fd04375f .\" Language: English .\" -.TH "GIT\-REV\-PARSE" "1" "2024\-03\-25" "Git 2\&.44\&.0\&.368\&.gc75fd8" "Git Manual" +.TH "GIT\-REV\-PARSE" "1" "2024\-03\-28" "Git 2\&.44\&.0\&.413\&.gd6fd04" "Git Manual" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- @@ -218,6 +218,42 @@ prefix); this option makes them output in a form as close to the original input .RS 4 This is similar to \-\-symbolic, but it omits input that are not refs (i\&.e\&. branch or tag names; or more explicitly disambiguating "heads/master" form, when you want to name the "master" branch when there is an unfortunately named tag "master"), and shows them as full refnames (e\&.g\&. "refs/heads/master")\&. .RE +.PP +\-\-output\-object\-format=(sha1|sha256|storage) +.RS 4 +Allow oids to be input from any object format that the current repository supports\&. +.sp +.if n \{\ +.RS 4 +.\} +.nf +Specifying "sha1" translates if necessary and returns a sha1 oid\&. +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +Specifying "sha256" translates if necessary and returns a sha256 oid\&. +.fi +.if n \{\ +.RE +.\} +.sp +.if n \{\ +.RS 4 +.\} +.nf +Specifying "storage" translates if necessary and returns an oid in +encoded in the storage hash algorithm\&. +.fi +.if n \{\ +.RE +.\} +.RE .SS "Options for Objects" .PP \-\-all |