Git development
 help / color / mirror / Atom feed
* [PATCH] Fix worktree usage message
@ 2015-10-18 11:02 Sidhant Sharma
  2015-10-18 11:39 ` Kevin Daudt
  0 siblings, 1 reply; 6+ messages in thread
From: Sidhant Sharma @ 2015-10-18 11:02 UTC (permalink / raw)
  To: git

Mark <branch> as optional in worktree command line usage.

Hi, just starting out with development for Git. Found this one super easy to fix,
so made a patch :)

---
 builtin/worktree.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/builtin/worktree.c b/builtin/worktree.c
index 71bb770..33d2d37 100644
--- a/builtin/worktree.c
+++ b/builtin/worktree.c
@@ -10,7 +10,7 @@
 #include "refs.h"

 static const char * const worktree_usage[] = {
-	N_("git worktree add [<options>] <path> <branch>"),
+	N_("git worktree add [<options>] <path> [<branch>]"),
 	N_("git worktree prune [<options>]"),
 	NULL
 };
--
2.6.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2015-10-19  6:36 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-18 11:02 [PATCH] Fix worktree usage message Sidhant Sharma
2015-10-18 11:39 ` Kevin Daudt
2015-10-18 12:15   ` Sidhant Sharma
2015-10-18 16:51     ` Eric Sunshine
2015-10-19  4:44       ` [PATCH] worktree: usage: denote <branch> as optional with 'add' Sidhant Sharma
2015-10-19  6:35         ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox