# [PATCH] Fix missing brackets in worktree usage

1 messages from 2015-10-18 to 2015-10-18. Participants: Sidhant Sharma.
Thread: https://gitlist.dev/t/40584

## Sidhant Sharma, 2015-10-18 10:24

Subject: [PATCH] Fix missing brackets in worktree usage
Message-ID: <1445163873-18485-1-git-send-email-tigerkid001@gmail.com>
URL: https://gitlist.dev/e/1445163873-18485-1-git-send-email-tigerkid001%40gmail.com

```
H, I'm just starting out with development for Git. Found this super easy to fix,
so here is a patch :)

Sidhant Sharma (1):
  builtin/worktree.c: Fix usage message

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

--
2.6.2

>From 6b9bc79b698d4c9e1a0f74c37887caf2a05f9978 Mon Sep 17 00:00:00 2001
From: Sidhant Sharma <tigerkid001@gmail.com>
Date: Sun, 18 Oct 2015 13:29:02 +0530
Subject: [PATCH] builtin/worktree.c: Fix usage message

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

Signed-off-by: Sidhant Sharma <tigerkid001@gmail.com>
---
 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

```
