From patchwork Tue Oct 9 18:31:14 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniels Umanovskis X-Patchwork-Id: 10633123 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 F129816B1 for ; Tue, 9 Oct 2018 18:31:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB982295B7 for ; Tue, 9 Oct 2018 18:31:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E9F03295AA; Tue, 9 Oct 2018 18:31:36 +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=-7.9 required=2.0 tests=BAYES_00,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 D6E132958E for ; Tue, 9 Oct 2018 18:31:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726728AbeJJBtv (ORCPT ); Tue, 9 Oct 2018 21:49:51 -0400 Received: from mail.weplayciv.com ([162.221.200.53]:60530 "EHLO mail.weplayciv.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726460AbeJJBtv (ORCPT ); Tue, 9 Oct 2018 21:49:51 -0400 Received: from localhost.localdomain (c-3985e555.02-149-6c6b7013.bbcust.telenor.se [85.229.133.57]) by mail.weplayciv.com (Postfix) with ESMTPSA id 0C22194E081; Tue, 9 Oct 2018 11:31:32 -0700 (PDT) From: Daniels Umanovskis To: git@vger.kernel.org Cc: Daniels Umanovskis Subject: [PATCH 2/2] doc/git-branch: Document the --current option Date: Tue, 9 Oct 2018 20:31:14 +0200 Message-Id: <20181009183114.16477-2-daniels@umanovskis.se> X-Mailer: git-send-email 2.19.1.274.g059d67db4.dirty In-Reply-To: <20181009183114.16477-1-daniels@umanovskis.se> References: <20181009183114.16477-1-daniels@umanovskis.se> 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 Signed-off-by: Daniels Umanovskis --- Documentation/git-branch.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Documentation/git-branch.txt b/Documentation/git-branch.txt index bf5316ffa..a7167df74 100644 --- a/Documentation/git-branch.txt +++ b/Documentation/git-branch.txt @@ -9,7 +9,7 @@ SYNOPSIS -------- [verse] 'git branch' [--color[=] | --no-color] [-r | -a] - [--list] [-v [--abbrev= | --no-abbrev]] + [--list] [--current] [-v [--abbrev= | --no-abbrev]] [--column[=] | --no-column] [--sort=] [(--merged | --no-merged) []] [--contains []] @@ -160,6 +160,10 @@ This option is only applicable in non-verbose mode. branch --list 'maint-*'`, list only the branches that match the pattern(s). +--current:: + Print the name of the current branch. In detached HEAD state, + or if otherwise impossible to resolve the branch name, print + "HEAD". -v:: -vv:: --verbose::