Skip to content

Commit 4c35f0d

Browse files
peffgitster
authored andcommitted
docs: clarify "branch -l"
This option is mostly useless these days because we turn on reflogs by default in non-bare repos. Signed-off-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent c8a9790 commit 4c35f0d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Documentation/git-branch.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,8 @@ OPTIONS
7272
Create the branch's reflog. This activates recording of
7373
all changes made to the branch ref, enabling use of date
7474
based sha1 expressions such as "<branchname>@\{yesterday}".
75+
Note that in non-bare repositories, reflogs are usually
76+
enabled by default by the `core.logallrefupdates` config option.
7577

7678
-f::
7779
--force::

0 commit comments

Comments
 (0)