threads / patch / 7808

patchReverse the order of -b and --track in the man page.

Subject: [PATCH] Reverse the order of -b and --track in the man page.

## tl;dr

One message between Apr 23, 2007 and Apr 23, 2007. Diffs are folded; open one to read it.

replies: 0people: 1as markdown or json

Brian Gernhardt· Apr 23, 2007, 23:56 UTC · lore
Using "-b --track newbranch oldbranch" gives the error:
  git checkout: updating paths is incompatible with switching
  branches/forcing
However, "--track -b ..." works just fine.
Signed-off-by: Brian Gernhardt <benji@silverinsanity.com>
---
 Documentation/git-checkout.txt |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Show changes to Documentation/git-checkout.txt +1 −1
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index 4f2e847..918d8ee 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -8,7 +8,7 @@ git-checkout - Checkout and switch to a branch
 SYNOPSIS
 --------
 [verse]
-'git-checkout' [-q] [-f] [-b [--track | --no-track] <new_branch> [-l]] [-m] [<branch>]
+'git-checkout' [-q] [-f] [[--track | --no-track] -b <new_branch> [-l]] [-m] [<branch>]
 'git-checkout' [<tree-ish>] <paths>...
 
 DESCRIPTION
-- 
1.5.2.rc0.1.g2cc31

← back to recent threads