Skip to content

Commit 97f03a5

Browse files
avargitster
authored andcommitted
doc txt & -h consistency: make "worktree" consistent
Make the "worktree" -h output consistent with the *.txt version. Signed-off-by: Ævar Arnfjörð Bjarmason <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 0afd556 commit 97f03a5

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

builtin/worktree.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,18 @@
1616
#include "quote.h"
1717

1818
#define BUILTIN_WORKTREE_ADD_USAGE \
19-
N_("git worktree add [<options>] <path> [<commit-ish>]")
19+
N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
20+
" [-b <new-branch>] <path> [<commit-ish>]")
2021
#define BUILTIN_WORKTREE_LIST_USAGE \
21-
N_("git worktree list [<options>]")
22+
N_("git worktree list [-v | --porcelain [-z]]")
2223
#define BUILTIN_WORKTREE_LOCK_USAGE \
23-
N_("git worktree lock [<options>] <path>")
24+
N_("git worktree lock [--reason <string>] <worktree>")
2425
#define BUILTIN_WORKTREE_MOVE_USAGE \
2526
N_("git worktree move <worktree> <new-path>")
2627
#define BUILTIN_WORKTREE_PRUNE_USAGE \
27-
N_("git worktree prune [<options>]")
28+
N_("git worktree prune [-n] [-v] [--expire <expire>]")
2829
#define BUILTIN_WORKTREE_REMOVE_USAGE \
29-
N_("git worktree remove [<options>] <worktree>")
30+
N_("git worktree remove [-f] <worktree>")
3031
#define BUILTIN_WORKTREE_REPAIR_USAGE \
3132
N_("git worktree repair [<path>...]")
3233
#define BUILTIN_WORKTREE_UNLOCK_USAGE \

0 commit comments

Comments
 (0)