summaryrefslogtreecommitdiffstats
path: root/git-update-ref.txt
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-03 15:15:13 -0700
committerJunio C Hamano <gitster@pobox.com>2014-06-03 15:15:13 -0700
commitb051caf02ee59e3c9d1da4a61339f667f28754d1 (patch)
tree04b2ca42cc953959fa66006e8e750d26da86ea3e /git-update-ref.txt
parent26aa6502e39e98238de17444d0d2a26999ea6445 (diff)
downloadgit-htmldocs-b051caf02ee59e3c9d1da4a61339f667f28754d1.tar.gz
Autogenerated HTML docs for v2.0.0-153-g79dcc
Diffstat (limited to 'git-update-ref.txt')
-rw-r--r--git-update-ref.txt18
1 files changed, 12 insertions, 6 deletions
diff --git a/git-update-ref.txt b/git-update-ref.txt
index 0a0a5512b..c8f5ae5cb 100644
--- a/git-update-ref.txt
+++ b/git-update-ref.txt
@@ -68,7 +68,12 @@ performs all modifications together. Specify commands of the form:
option SP <opt> LF
Quote fields containing whitespace as if they were strings in C source
-code. Alternatively, use `-z` to specify commands without quoting:
+code; i.e., surrounded by double-quotes and with backslash escapes.
+Use 40 "0" characters or the empty string to specify a zero value. To
+specify a missing value, omit the value and its preceding SP entirely.
+
+Alternatively, use `-z` to specify in NUL-terminated format, without
+quoting:
update SP <ref> NUL <newvalue> NUL [<oldvalue>] NUL
create SP <ref> NUL <newvalue> NUL
@@ -76,8 +81,12 @@ code. Alternatively, use `-z` to specify commands without quoting:
verify SP <ref> NUL [<oldvalue>] NUL
option SP <opt> NUL
-Lines of any other format or a repeated <ref> produce an error.
-Command meanings are:
+In this format, use 40 "0" to specify a zero value, and use the empty
+string to specify a missing value.
+
+In either format, values can be specified in any form that Git
+recognizes as an object name. Commands in any other format or a
+repeated <ref> produce an error. Command meanings are:
update::
Set <ref> to <newvalue> after verifying <oldvalue>, if given.
@@ -102,9 +111,6 @@ option::
The only valid option is `no-deref` to avoid dereferencing
a symbolic ref.
-Use 40 "0" or the empty string to specify a zero value, except that
-with `-z` an empty <oldvalue> is considered missing.
-
If all <ref>s can be locked with matching <oldvalue>s
simultaneously, all modifications are performed. Otherwise, no
modifications are performed. Note that while each individual