Skip to content

Commit 075dd8e

Browse files
Fredrik KuivinenJunio C Hamano
authored andcommitted
git-branch: Documentation fixes
Signed-off-by: Fredrik Kuivinen <freku045@student.liu.se> Signed-off-by: Junio C Hamano <junkio@cox.net>
1 parent 4353f38 commit 075dd8e

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Documentation/git-branch.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git-branch - Create a new branch, or remove an old one.
77

88
SYNOPSIS
99
--------
10-
'git-branch' [-d | -D] [<branchname> [start-point]]
10+
'git-branch' [(-d | -D) <branchname>] | [[-f] <branchname> [<start-point>]]
1111

1212
DESCRIPTION
1313
-----------
@@ -25,10 +25,13 @@ OPTIONS
2525
-D::
2626
Delete a branch irrespective of its index status.
2727

28+
-f::
29+
Force a reset of <branchname> to <start-point> (or current head).
30+
2831
<branchname>::
2932
The name of the branch to create or delete.
3033

31-
start-point::
34+
<start-point>::
3235
Where to create the branch; defaults to HEAD. This
3336
option has no meaning with -d and -D.
3437

git-branch.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/sh
22

3-
USAGE='[-d <branch>] | [[-f] <branch> [start-point]]'
3+
USAGE='[(-d | -D) <branchname>] | [[-f] <branchname> [<start-point>]]'
44
LONG_USAGE='If no arguments, show available branches and mark current branch with a star.
55
If one argument, create a new branch <branchname> based off of current HEAD.
66
If two arguments, create a new branch <branchname> based off of <start-point>.'

0 commit comments

Comments
 (0)