From patchwork Fri Mar 29 10:38:54 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Duy Nguyen X-Patchwork-Id: 10876777 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3A7B1186D for ; Fri, 29 Mar 2019 10:39:59 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2674B28705 for ; Fri, 29 Mar 2019 10:39:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 19D1328725; Fri, 29 Mar 2019 10:39:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 13F462870B for ; Fri, 29 Mar 2019 10:39:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729051AbfC2Kj5 (ORCPT ); Fri, 29 Mar 2019 06:39:57 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:33585 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728689AbfC2Kj4 (ORCPT ); Fri, 29 Mar 2019 06:39:56 -0400 Received: by mail-pf1-f194.google.com with SMTP id i19so882987pfd.0 for ; Fri, 29 Mar 2019 03:39:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=dYICuZHxJa2UGqrJAsgZwTCvdrxtJIwWIcdMxQvIRwQ=; b=QWVeJyep8Xy1q4J3prgmTxKXNSQO9X++ycepM9TbFde2jye0OQ0Od3G30NZyD1uQ+l UCJ3SDkbUV+oG0jQshCeWDaxK7IxlKJaXkPvd/1o0V3Mgzlj9AhzC0W5oVxbyMVY9mzr Pm4KRlhVoAcrtBcCdA6/LZ/zWFh184/MgB9+myGtXTCWxwApk/H9Zy3izAuMksgdNarT aDU0PDdvFPhJOG/lWdUs+UxEdeGYK1tcsc9R0R/T08puZcG1/fkKnwDrHlPlbKFgKisa PaXSgP99bWg7H/FJxaaIC/wu6RON1RTY4AU1nAgtG479djtPYHky68NntApzYsrVQ4BM d3Fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=dYICuZHxJa2UGqrJAsgZwTCvdrxtJIwWIcdMxQvIRwQ=; b=Bq3ldGx/6gKFFUycsW5mPgRUG6/pqdtDCuldQqS5aHuxpkoYepl5CD9shX5TJc2jV1 nFKvJbWOJMMEcPp5qnRJR3zzWJGhmjVjPfVEKlM4HPd/IY2znZNxCXP5QB2ngkZnxCr+ b0eBWwxnIsBZygE2t9r/WNk2qmFXL7B1vLMrkVIuGMWS76xj5UouubsiSw35Mpya2XNO i1MMUroXdsnM0Q5vqo4LOHhZJYeuIDeLYzUeHb504HIswdfBhh9bhFQCb6+Z8faw/E/E IkbBWL12SRegEWihubXF7Idj2jRS6ap6n6PAkYURqyYtHNRUJMwvmrGKZ0S5bhb1SvW8 igQQ== X-Gm-Message-State: APjAAAVKi6sm34g41P8jGLzIzDOmUQvp5sjgKflcSOHzoim5UC/JNnbg ZeIEbY0T2zS9ETKCCVxFGMI= X-Google-Smtp-Source: APXvYqwGfTlKPYVexetwIE097p7GF2zu5PXunQMAHLiKyYFAzyRWYyTsPa8HH7gb1rOisEG0jSbCcA== X-Received: by 2002:a63:df12:: with SMTP id u18mr44368241pgg.135.1553855995984; Fri, 29 Mar 2019 03:39:55 -0700 (PDT) Received: from ash ([171.236.209.43]) by smtp.gmail.com with ESMTPSA id a17sm4958950pgd.30.2019.03.29.03.39.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Mar 2019 03:39:54 -0700 (PDT) Received: by ash (sSMTP sendmail emulation); Fri, 29 Mar 2019 17:39:48 +0700 From: =?utf-8?b?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= To: pclouds@gmail.com Cc: eckhard.s.maass@googlemail.com, git@vger.kernel.org, gitster@pobox.com, jacob.keller@gmail.com, martin.agren@gmail.com, newren@gmail.com, phillip.wood123@gmail.com, rybak.a.v@gmail.com, sunshine@sunshineco.com, szeder.dev@gmail.com Subject: [PATCH v6 02/27] git-checkout.txt: fix one syntax line Date: Fri, 29 Mar 2019 17:38:54 +0700 Message-Id: <20190329103919.15642-3-pclouds@gmail.com> X-Mailer: git-send-email 2.21.0.479.g47ac719cd3 In-Reply-To: <20190329103919.15642-1-pclouds@gmail.com> References: <20190321131655.15249-1-pclouds@gmail.com> <20190329103919.15642-1-pclouds@gmail.com> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP can be omitted in this syntax, and it's actually documented a few paragraphs down: You could omit , in which case the command degenerates to "check out the current branch", which is a glorified no-op with rather expensive side-effects to show only the tracking information, if exists, for the current branch. Signed-off-by: Nguyễn Thái Ngọc Duy --- Documentation/git-checkout.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/git-checkout.txt b/Documentation/git-checkout.txt index 99c8c0dc0f..28817cfa41 100644 --- a/Documentation/git-checkout.txt +++ b/Documentation/git-checkout.txt @@ -23,7 +23,7 @@ or the specified tree. If no paths are given, 'git checkout' will also update `HEAD` to set the specified branch as the current branch. -'git checkout' :: +'git checkout' []:: To prepare for working on , switch to it by updating the index and the files in the working tree, and by pointing HEAD at the branch. Local modifications to the files in the