summaryrefslogtreecommitdiff
path: root/builtin/worktree.c
diff options
context:
space:
mode:
authorÆvar Arnfjörð Bjarmason <avarab@gmail.com>2022-10-13 15:39:26 (GMT)
committerJunio C Hamano <gitster@pobox.com>2022-10-13 16:32:58 (GMT)
commit97f03a562840b3aacb790188567d631cc7e6e46f (patch)
tree6eece4adac7768ee880c6ea1e825cb751b965a3e /builtin/worktree.c
parent0afd556b2e1a8b5028d27cdede92bbab74a714da (diff)
downloadgit-97f03a562840b3aacb790188567d631cc7e6e46f.zip
git-97f03a562840b3aacb790188567d631cc7e6e46f.tar.gz
git-97f03a562840b3aacb790188567d631cc7e6e46f.tar.bz2
doc txt & -h consistency: make "worktree" consistent
Make the "worktree" -h output consistent with the *.txt version. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/worktree.c')
-rw-r--r--builtin/worktree.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/builtin/worktree.c b/builtin/worktree.c
index ba6846c..4a24d53 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -16,17 +16,18 @@
#include "quote.h"
#define BUILTIN_WORKTREE_ADD_USAGE \
- N_("git worktree add [<options>] <path> [<commit-ish>]")
+ N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
+ " [-b <new-branch>] <path> [<commit-ish>]")
#define BUILTIN_WORKTREE_LIST_USAGE \
- N_("git worktree list [<options>]")
+ N_("git worktree list [-v | --porcelain [-z]]")
#define BUILTIN_WORKTREE_LOCK_USAGE \
- N_("git worktree lock [<options>] <path>")
+ N_("git worktree lock [--reason <string>] <worktree>")
#define BUILTIN_WORKTREE_MOVE_USAGE \
N_("git worktree move <worktree> <new-path>")
#define BUILTIN_WORKTREE_PRUNE_USAGE \
- N_("git worktree prune [<options>]")
+ N_("git worktree prune [-n] [-v] [--expire <expire>]")
#define BUILTIN_WORKTREE_REMOVE_USAGE \
- N_("git worktree remove [<options>] <worktree>")
+ N_("git worktree remove [-f] <worktree>")
#define BUILTIN_WORKTREE_REPAIR_USAGE \
N_("git worktree repair [<path>...]")
#define BUILTIN_WORKTREE_UNLOCK_USAGE \