From patchwork Mon Oct 1 11:21:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10621861 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 8D9C015A7 for ; Mon, 1 Oct 2018 11:21:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7DC18293A1 for ; Mon, 1 Oct 2018 11:21:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 712EB293A6; Mon, 1 Oct 2018 11:21:23 +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,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 F28E0293A9 for ; Mon, 1 Oct 2018 11:21:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729175AbeJAR6g (ORCPT ); Mon, 1 Oct 2018 13:58:36 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:37008 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728921AbeJAR6f (ORCPT ); Mon, 1 Oct 2018 13:58:35 -0400 Received: by mail-ed1-f66.google.com with SMTP id c22-v6so223003edc.4 for ; Mon, 01 Oct 2018 04:21:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9kNdEip7Gd3rQA86IfR1rSbKzsFJ+zSxgaPg4ALGOo4=; b=hgYYKtOFVOvPomXfi/izctMZKXsj20Q4DSMIqxnDlxvMoNPqFKkzUGN2/9TwtnbOEf D0kmVvYTwYPR/8b4u7UW17PX8D9AhksUu8FMa0dNRLc033Lzud1I1pIaZSO+IG2jwjS9 UB1KXLaTay21iuDeWS+RZRUPFxrWPZJ6nsx58= 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=9kNdEip7Gd3rQA86IfR1rSbKzsFJ+zSxgaPg4ALGOo4=; b=F4uaRsUReLz7Ai9jJ/T8NszwbbwhIH/igXB3wg5x395+583dYxpp99YfEveDKP2ZNG t92O+expiuWu7cE2FKIVizMgzQxNmEa+dvaBvc3D8u0ZCI9R1pUBCwDBhwLLgVNiBJri GnNLJDcVnt6VlK8A+Y49QE2Re1zD7eVtZMeEJ2wH0x53rVjb0s90AFkvBy9/TyV93uUV +YhwNCoOZ1iZ20MqlLjXouKB1AmrGpxX7gJWkTD+1H2lV7i0N4IPdocDGvLdAaBlwCUB 9Iuu70K5ED+n9XTF0TzqK6xoB3WzbdRc7EqDJ2Bs6DtVVkTg59TAkrr1elypYEgxWWG1 qj6g== X-Gm-Message-State: ABuFfogaM+7AgMxQ6Y8+0aE04p7x2StH//n6zAidvjo2MpPCS/uyuC2Q 1fLZJsspXfMRJMnD3cctcqIfuDtIUi/j+w== X-Google-Smtp-Source: ACcGV63jnMOOsPO0XmBc5SitxJy5eHWhMgAHKhfG+05l3nDcCilNpxNEo+jRlikF7IT7P1X9QS7llg== X-Received: by 2002:a50:b3dd:: with SMTP id t29-v6mr4979933edd.76.1538392876228; Mon, 01 Oct 2018 04:21:16 -0700 (PDT) Received: from prevas-ravi.waoo.dk (dhcp-5-186-116-96.cgn.ip.fibianet.dk. [5.186.116.96]) by smtp.gmail.com with ESMTPSA id d13-v6sm1908560eda.51.2018.10.01.04.21.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 01 Oct 2018 04:21:15 -0700 (PDT) From: Rasmus Villemoes To: git@vger.kernel.org Cc: Jeff King , Junio C Hamano , Duy Nguyen , Taylor Blau , Rasmus Villemoes Subject: [PATCH v2 3/3] git-help.txt: document "git help cmd" vs "git cmd --help" for aliases Date: Mon, 1 Oct 2018 13:21:07 +0200 Message-Id: <20181001112107.28956-3-rv@rasmusvillemoes.dk> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181001112107.28956-1-rv@rasmusvillemoes.dk> References: <20180926102636.30691-1-rv@rasmusvillemoes.dk> <20181001112107.28956-1-rv@rasmusvillemoes.dk> 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 This documents the existing behaviour of "git help cmd" when cmd is an alias, as well as providing a hint to use the "git cmd --help" form to be taken directly to the man page for the aliased command. Signed-off-by: Rasmus Villemoes --- Documentation/git-help.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Documentation/git-help.txt b/Documentation/git-help.txt index 83d25d825a..37e85868fd 100644 --- a/Documentation/git-help.txt +++ b/Documentation/git-help.txt @@ -29,6 +29,10 @@ guide is brought up. The 'man' program is used by default for this purpose, but this can be overridden by other options or configuration variables. +If an alias is given, git prints a note explaining what it is an alias +for on standard output. To get the manual page for the aliased +command, use `git COMMAND --help`. + Note that `git --help ...` is identical to `git help ...` because the former is internally converted into the latter.