summaryrefslogtreecommitdiff
path: root/Documentation/git-checkout.txt
diff options
context:
space:
mode:
authorAlexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com>2019-12-03 14:02:14 (GMT)
committerJunio C Hamano <gitster@pobox.com>2019-12-04 18:10:37 (GMT)
commit1d022bb43fee1671c9dd69a35ffb36e73e157520 (patch)
treeaceeffdbc64215717a0fc2a6faf3b6c6f544c994 /Documentation/git-checkout.txt
parentbebb5d6d6bf64d5b5f175af81db1e0e2fa1c5ccb (diff)
downloadgit-1d022bb43fee1671c9dd69a35ffb36e73e157520.zip
git-1d022bb43fee1671c9dd69a35ffb36e73e157520.tar.gz
git-1d022bb43fee1671c9dd69a35ffb36e73e157520.tar.bz2
doc: checkout: remove duplicate synopsis
It was added in [1]. I understand that the duplicate change was not intentional and comes from an oversight. Also, in explanation, there was only one section for two synopsis entries. Fix both problems by removing duplicate synopsis. <paths> vs <pathspec> is resolved in next patch. [1] Commit b59698ae ("checkout doc: clarify command line args for "checkout paths" mode" 2017-10-11) Signed-off-by: Alexandr Miloslavskiy <alexandr.miloslavskiy@syntevo.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-checkout.txt')
-rw-r--r--Documentation/git-checkout.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt
index cf3cac0..2011fdb 100644
--- a/Documentation/git-checkout.txt
+++ b/Documentation/git-checkout.txt
@@ -13,7 +13,6 @@ SYNOPSIS
'git checkout' [-q] [-f] [-m] [--detach] <commit>
'git checkout' [-q] [-f] [-m] [[-b|-B|--orphan] <new_branch>] [<start_point>]
'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>...
-'git checkout' [<tree-ish>] [--] <pathspec>...
'git checkout' (-p|--patch) [<tree-ish>] [--] [<paths>...]
DESCRIPTION
@@ -79,7 +78,7 @@ be used to detach `HEAD` at the tip of the branch (`git checkout
+
Omitting `<branch>` detaches `HEAD` at the tip of the current branch.
-'git checkout' [<tree-ish>] [--] <pathspec>...::
+'git checkout' [-f|--ours|--theirs|-m|--conflict=<style>] [<tree-ish>] [--] <paths>...::
Overwrite paths in the working tree by replacing with the
contents in the index or in the `<tree-ish>` (most often a