提交 cd8e3711 编写于 作者: B Bert Wesarg 提交者: Junio C Hamano

Documentation: clearly specify what refs are honored by core.logAllRefUpdates

The documentation for logging updates in git-update-ref, doesn't make it
clear that only a specific subset of refs are honored by this variable.
Signed-off-by: NBert Wesarg <bert.wesarg@googlemail.com>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 e923eaeb
...@@ -330,7 +330,9 @@ core.logAllRefUpdates:: ...@@ -330,7 +330,9 @@ core.logAllRefUpdates::
SHA1, the date/time and the reason of the update, but SHA1, the date/time and the reason of the update, but
only when the file exists. If this configuration only when the file exists. If this configuration
variable is set to true, missing "$GIT_DIR/logs/<ref>" variable is set to true, missing "$GIT_DIR/logs/<ref>"
file is automatically created for branch heads. file is automatically created for branch heads (i.e. under
refs/heads/), remote refs (i.e. under refs/remotes/),
note refs (i.e. under refs/notes/), and the symbolic ref HEAD.
+ +
This information can be used to determine what commit This information can be used to determine what commit
was the tip of a branch "2 days ago". was the tip of a branch "2 days ago".
......
...@@ -60,8 +60,9 @@ still contains <oldvalue>. ...@@ -60,8 +60,9 @@ still contains <oldvalue>.
Logging Updates Logging Updates
--------------- ---------------
If config parameter "core.logAllRefUpdates" is true or the file If config parameter "core.logAllRefUpdates" is true and the ref is one under
"$GIT_DIR/logs/<ref>" exists then `git update-ref` will append "refs/heads/", "refs/remotes/", "refs/notes/", or the symbolic ref HEAD; or
the file "$GIT_DIR/logs/<ref>" exists then `git update-ref` will append
a line to the log file "$GIT_DIR/logs/<ref>" (dereferencing all a line to the log file "$GIT_DIR/logs/<ref>" (dereferencing all
symbolic refs before creating the log name) describing the change symbolic refs before creating the log name) describing the change
in ref value. Log lines are formatted as: in ref value. Log lines are formatted as:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册