From: Jacob Abel <jacobabel@nullpo•dev>
To: git@vger•kernel.org
Cc: "Jacob Abel" <jacobabel@nullpo•dev>,
"Ævar Arnfjörð Bjarmason" <avarab@gmail•com>,
"Eric Sunshine" <sunshine@sunshineco•com>,
"Junio C Hamano" <gitster@pobox•com>,
"Phillip Wood" <phillip.wood123@gmail•com>,
"Rubén Justo" <rjusto@gmail•com>, "Taylor Blau" <me@ttaylorr•com>,
rsbecker@nexbridge•com
Subject: [PATCH v10 1/8] worktree add: include -B in usage docs
Date: Sun, 07 May 2023 12:06:04 +0000 [thread overview]
Message-ID: <20230507120530.14669-2-jacobabel@nullpo.dev> (raw)
In-Reply-To: <20230507120530.14669-1-jacobabel@nullpo.dev>
Document `-B` next to where `-b` is already documented to bring the
usage docs in line with other commands such as git checkout.
Signed-off-by: Jacob Abel <jacobabel@nullpo•dev>
---
Documentation/git-worktree.txt | 2 +-
builtin/worktree.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/git-worktree.txt b/Documentation/git-worktree.txt
index 063d6eeb99..b9c12779f1 100644
--- a/Documentation/git-worktree.txt
+++ b/Documentation/git-worktree.txt
@@ -10,7 +10,7 @@ SYNOPSIS
--------
[verse]
'git worktree add' [-f] [--detach] [--checkout] [--lock [--reason <string>]]
- [-b <new-branch>] <path> [<commit-ish>]
+ [(-b | -B) <new-branch>] <path> [<commit-ish>]
'git worktree list' [-v | --porcelain [-z]]
'git worktree lock' [--reason <string>] <worktree>
'git worktree move' <worktree> <new-path>
diff --git a/builtin/worktree.c b/builtin/worktree.c
index 39e9e5c9ce..d1b4b53f2c 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -22,7 +22,7 @@
#define BUILTIN_WORKTREE_ADD_USAGE \
N_("git worktree add [-f] [--detach] [--checkout] [--lock [--reason <string>]]\n" \
- " [-b <new-branch>] <path> [<commit-ish>]")
+ " [(-b | -B) <new-branch>] <path> [<commit-ish>]")
#define BUILTIN_WORKTREE_LIST_USAGE \
N_("git worktree list [-v | --porcelain [-z]]")
#define BUILTIN_WORKTREE_LOCK_USAGE \
--
2.39.3
next prev parent reply other threads:[~2023-05-07 12:06 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-07 12:05 [PATCH v10 0/8] worktree: Support `--orphan` when creating new worktrees Jacob Abel
2023-05-07 12:06 ` Jacob Abel [this message]
2023-05-07 12:06 ` [PATCH v10 2/8] t2400: cleanup created worktree in test Jacob Abel
2023-05-07 12:14 ` [PATCH v10 0/8] worktree: Support `--orphan` when creating new worktrees Jacob Abel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230507120530.14669-2-jacobabel@nullpo.dev \
--to=jacobabel@nullpo$(echo .)dev \
--cc=avarab@gmail$(echo .)com \
--cc=git@vger$(echo .)kernel.org \
--cc=gitster@pobox$(echo .)com \
--cc=me@ttaylorr$(echo .)com \
--cc=phillip.wood123@gmail$(echo .)com \
--cc=rjusto@gmail$(echo .)com \
--cc=rsbecker@nexbridge$(echo .)com \
--cc=sunshine@sunshineco$(echo .)com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox