]> git.ipfire.org Git - thirdparty/git.git/blobdiff - Documentation/git-rev-parse.txt
rev-parse: add an --output-object-format parameter
[thirdparty/git.git] / Documentation / git-rev-parse.txt
index f26a7591e3737df6bcf190fc26f0fe2bf50fcd83..f0f9021f2a5a0b6a51798b71d61729efcc0be969 100644 (file)
@@ -159,6 +159,18 @@ for another option.
        unfortunately named tag "master"), and show them as full
        refnames (e.g. "refs/heads/master").
 
+--output-object-format=(sha1|sha256|storage)::
+
+       Allow oids to be input from any object format that the current
+       repository supports.
+
+       Specifying "sha1" translates if necessary and returns a sha1 oid.
+
+       Specifying "sha256" translates if necessary and returns a sha256 oid.
+
+       Specifying "storage" translates if necessary and returns an oid in
+       encoded in the storage hash algorithm.
+
 Options for Objects
 ~~~~~~~~~~~~~~~~~~~