Skip to contentSkip to conversation

checkout: Fix grammar in inline comment.

PATCH New Brian Gesiak 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 checkout: Fix grammar in inline comment.

Inline comment had incorrect grammar. Fix grammatical mistakes and reflect actual behavior of the function.

---
 builtin/checkout.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
builtin/checkout.c +2 -2
index 63151e0..abe1161 100644
@@ -888,8 +888,8 @@ static int parse_branchname_arg(int argc, const char **argv,
 	 *
 	 * case 3: git checkout <something> [--]
 	 *
-	 *   (a) If <something> is a commit, that is to
-	 *       switch to the branch or detach HEAD at it.  As a special case,
+	 *   (a) If <something> is a commit, switch to that branch or
+	 *       detach HEAD at that commit.  As a special case,
 	 *       if <something> is A...B (missing A or B means HEAD but you can
 	 *       omit at most one side), and if there is a unique merge base
 	 *       between A and B, A...B names that merge base.
Signature · 1 line
1.9.0.259.gc5d75e8.dirty