From patchwork Tue Oct 9 11:59:06 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 10632389 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 297BB15E8 for ; Tue, 9 Oct 2018 11:59:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 22C5228C63 for ; Tue, 9 Oct 2018 11:59:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 16F6A28C68; Tue, 9 Oct 2018 11:59:18 +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 C58F628C63 for ; Tue, 9 Oct 2018 11:59:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726460AbeJITPw (ORCPT ); Tue, 9 Oct 2018 15:15:52 -0400 Received: from mail-ed1-f66.google.com ([209.85.208.66]:45268 "EHLO mail-ed1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726160AbeJITPw (ORCPT ); Tue, 9 Oct 2018 15:15:52 -0400 Received: by mail-ed1-f66.google.com with SMTP id v18-v6so1401885edq.12 for ; Tue, 09 Oct 2018 04:59:14 -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=CTNP7BAT2nD4D3j6AlZV4HR4MoaRHvnZXgS9XpeRgj0=; b=BUFpSUvtYMFN4WQln5f6GYhpg6jVZJkWqdBx9jlYmi1jpwIplb4HqKjUMjUc+nldLL J9tZJ5bGhlMTXKK7WB7LiCW6kwgzDZaOjfHGEN+zk200x3PeYSY0BunmwQyFvlxRg6MC oHqvHcGYcG8HmmERtvg6vnVd+jCxK8XZfvC2Q= 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=CTNP7BAT2nD4D3j6AlZV4HR4MoaRHvnZXgS9XpeRgj0=; b=ReQiNn3xOo2Cc/ZYIIOUnzUqZj7BpojHtl1qqfdLNbbrJ0FCPh3lR8YDwv/EETh9Ne ak1763CWP3+vO2LJKiLccjpJr03V56R2N1KIy/xyXTpSMyVuIrhzzAGCcqj6oHPrMG1A xyjTl0Vuhg2qWhOBVQmmc3ZHaqSaxDE4iWc21lIqmirASIXM6oILTB2KeMy3MkjJpQkj 3ugjE7yOesKUTaJPJvZ5EoEAK6YL9lNg/hH7UTMAzzBu4L5zSnIORv1Xnj7WgFIWCIU/ UPNhVmGcvTnvZvWUYE8IehNbD3EmpJMbPDkzqyBG8rmY7poDO11CbzhK3Ly1X7CoZeEX RADA== X-Gm-Message-State: ABuFfohciKPrj1DIPcPJEJCu4+VEBmOjMh2Q3g08L6xzbIWGPcEkILn8 cxb4j23TDfWrEOF4gMg86/rNhR6Bf10= X-Google-Smtp-Source: ACcGV61EHqqTxL591q98XS3dWZQ0Aa4PXNmycXGlnzibDLifbbxsH8flG37W4zF/vyK0JZYoTxOnlQ== X-Received: by 2002:a17:906:1c45:: with SMTP id l5-v6mr28183739ejg.118.1539086353642; Tue, 09 Oct 2018 04:59:13 -0700 (PDT) Received: from prevas-ravi.vestasvisitor.net ([193.47.71.171]) by smtp.gmail.com with ESMTPSA id o4-v6sm3522556ejx.30.2018.10.09.04.59.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 09 Oct 2018 04:59:12 -0700 (PDT) From: Rasmus Villemoes To: git@vger.kernel.org Cc: Jeff King , Junio C Hamano , Duy Nguyen , Taylor Blau , Rasmus Villemoes Subject: [PATCH v4 0/3] alias help tweaks Date: Tue, 9 Oct 2018 13:59:06 +0200 Message-Id: <20181009115909.16648-1-rv@rasmusvillemoes.dk> X-Mailer: git-send-email 2.19.1.4.g721af0fda3 In-Reply-To: <20181003114242.9858-1-rv@rasmusvillemoes.dk> References: <20181003114242.9858-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 v2: Added patches 2 and 3, made "git cmd --help" unconditionally (no config option, no delay) redirect to the aliased command's help, preserve pre-existing behaviour of the spelling "git help cmd". v3: Add some additional comments in patch 1 and avoid triggering leak checker reports. Use better wording in patch 3. v4: Reword commit log in patch 1. Rasmus Villemoes (3): help: redirect to aliased commands for "git cmd --help" git.c: handle_alias: prepend alias info when first argument is -h git-help.txt: document "git help cmd" vs "git cmd --help" for aliases Documentation/git-help.txt | 4 ++++ builtin/help.c | 34 +++++++++++++++++++++++++++++++--- git.c | 3 +++ 3 files changed, 38 insertions(+), 3 deletions(-)