X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-branch.txt;h=d43ef1dec4f27361af1a32983c53aeea15468fe9;hb=HEAD;hp=0b37e2bfc85706ca6d41c1c9e4fedcdce53a7578;hpb=d48f7168619932a389341f1f0c904ab6dc117b5e;p=git.git diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index 0b37e2bf..d43ef1de 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -9,7 +9,7 @@ SYNOPSIS -------- [verse] 'git-branch' [-r] -'git-branch' [-f] [] +'git-branch' [-l] [-f] [] 'git-branch' (-d | -D) ... DESCRIPTION @@ -23,7 +23,8 @@ If no is given, the branch will be created with a head equal to that of the currently checked out branch. With a `-d` or `-D` option, `` will be deleted. You may -specify more than one branch for deletion. +specify more than one branch for deletion. If the branch currently +has a ref log then the ref log will also be deleted. OPTIONS @@ -34,6 +35,11 @@ OPTIONS -D:: Delete a branch irrespective of its index status. +-l:: + Create the branch's ref log. This activates recording of + all changes to made the branch ref, enabling use of date + based sha1 expressions such as "@{yesterday}". + -f:: Force the creation of a new branch even if it means deleting a branch that already exists with the same name.