path: root/Documentation/git-branch.txt
diff options
authorCornelius Weig <>2017-02-01 22:07:27 (GMT)
committerJunio C Hamano <>2017-02-01 23:53:40 (GMT)
commit67c70bd930538890d8eccace72fb0e0a0e565447 (patch)
treefd0a79296f502068f0ae7f2f9f2c8b478e86a245 /Documentation/git-branch.txt
parentb1421a43d5e28d71dc89b99877c3fbcb845aae08 (diff)
doc: add note about ignoring '--no-create-reflog'
The commands git-branch and git-tag accept the '--create-reflog' option, and create reflog even when core.logallrefupdates configuration is explicitly set not to. On the other hand, the negated form '--no-create-reflog' is accepted as a valid option but has no effect (other than overriding an earlier '--create-reflog' on the command line). This silent noop may puzzle users. To communicate that this is a known limitation, add a short note in the manuals for git-branch and git-tag. Signed-off-by: Cornelius Weig <> Helped-by: Jeff King <> Signed-off-by: Junio C Hamano <>
Diffstat (limited to 'Documentation/git-branch.txt')
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt
index 5516a47..28d46cc 100644
--- a/Documentation/git-branch.txt
+++ b/Documentation/git-branch.txt
@@ -91,6 +91,9 @@ OPTIONS
based sha1 expressions such as "<branchname>@\{yesterday}".
Note that in non-bare repositories, reflogs are usually
enabled by default by the `core.logallrefupdates` config option.
+ The negated form `--no-create-reflog` only overrides an earlier
+ `--create-reflog`, but currently does not negate the setting of
+ `core.logallrefupdates`.