X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=Documentation%2Fgit-update-ref.txt;h=9639f705afafab6fcf0cd21ad2693627ab42f66d;hb=b1889c36d85514e5e70462294c561a02c2edfe2b;hp=bae2c8b7eced2042af0437b1e92cc73636c7cfa5;hpb=46e56e81b3bc91af7071809fbda8dcdec22c4cb1;p=thirdparty%2Fgit.git diff --git a/Documentation/git-update-ref.txt b/Documentation/git-update-ref.txt index bae2c8b7ec..9639f705af 100644 --- a/Documentation/git-update-ref.txt +++ b/Documentation/git-update-ref.txt @@ -7,18 +7,18 @@ git-update-ref - Update the object name stored in a ref safely SYNOPSIS -------- -'git-update-ref' [-m ] (-d [] | [--no-deref] []) +'git update-ref' [-m ] (-d [] | [--no-deref] []) DESCRIPTION ----------- Given two arguments, stores the in the , possibly -dereferencing the symbolic refs. E.g. `git-update-ref HEAD +dereferencing the symbolic refs. E.g. `git update-ref HEAD ` updates the current branch head to the new object. Given three arguments, stores the in the , possibly dereferencing the symbolic refs, after verifying that the current value of the matches . -E.g. `git-update-ref refs/heads/master ` +E.g. `git update-ref refs/heads/master ` updates the master branch head to only if its current value is . You can specify 40 "0" or an empty string as to make sure that the ref you are creating does @@ -41,7 +41,7 @@ the result of following the symbolic pointers. In general, using - git-update-ref HEAD "$head" + git update-ref HEAD "$head" should be a _lot_ safer than doing @@ -61,7 +61,7 @@ still contains . Logging Updates --------------- If config parameter "core.logAllRefUpdates" is true or the file -"$GIT_DIR/logs/" exists then `git-update-ref` will append +"$GIT_DIR/logs/" exists then `git update-ref` will append a line to the log file "$GIT_DIR/logs/" (dereferencing all symbolic refs before creating the log name) describing the change in ref value. Log lines are formatted as: