From patchwork Thu Feb 4 23:29:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Johannes Schindelin X-Patchwork-Id: 12068941 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E1102C433E0 for ; Thu, 4 Feb 2021 23:30:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BC66C64FB0 for ; Thu, 4 Feb 2021 23:30:37 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230197AbhBDXaU (ORCPT ); Thu, 4 Feb 2021 18:30:20 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57830 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230091AbhBDXaO (ORCPT ); Thu, 4 Feb 2021 18:30:14 -0500 Received: from mail-wm1-x330.google.com (mail-wm1-x330.google.com [IPv6:2a00:1450:4864:20::330]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBFB4C06178B for ; Thu, 4 Feb 2021 15:29:58 -0800 (PST) Received: by mail-wm1-x330.google.com with SMTP id o10so6840500wmc.1 for ; Thu, 04 Feb 2021 15:29:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:in-reply-to:references:from:date:subject:fcc :content-transfer-encoding:mime-version:to:cc; bh=q7cKnUpUO/gDwwMLsD/crPwNAKcy0rWwvfrJg8VmXY8=; b=e4hHf/n4vQZ8MHS5nLS/FU8EId7XN1M6rDJDXBP4em6j/Yn4IOrQWgD1/z4xIP4g1B hFj1s8kyFDVXHL7eg4w5ypAELc9JOUjGaAdAWepKFeLV5qOQ3/JJek+swnYGbG9s6998 xlAmbTSxIF1ZrPm13NNwjtZiLDddYYbnFo7jHd6k+Gv1X4N2LZxJ6qn7sJOebYibiSuN MzkwcXtEdvo8fzaK6MJDWacVYML1110FRhPu4X9c4XEx8eQFkV1RRer1U0jlurj47l7e w7MwFJC0WRE8UAPDtEPjBfVw1OrzqBn2EuvT7Xr5OE9D1xOwL+8PMnw1gweal3Gp9uXt W+MA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:in-reply-to:references:from:date :subject:fcc:content-transfer-encoding:mime-version:to:cc; bh=q7cKnUpUO/gDwwMLsD/crPwNAKcy0rWwvfrJg8VmXY8=; b=bxl2BBC6WHLPizg1yvMc91CymsongnTBax/sLLwZgFqe6s6t1+4xyYubqbsHgc/cuA k+Y1CMJIc8I30M2pakujO61X3c8KbGtQzcm23ib8x21B9JnI8BmqqiOFENlQgWHu6hOg rWbh4Fa071voVsEu0hPvEAHB5N8LOuTXVzUbA8/0+RIUnoy/aSY8ujL7H2s1caR+lCBI 5HQDVW91+YcOS76nNV2mqzlCG2kdoX/a9DOA1IO4aagUrFbYCk8pZn6zGhFERmI0AUFl VhlhPiT+qZ5wfIrwhPlFBPSBuLTQ2hJz9CUYlnmsNlseoAHvzq/ND879Lbv/58rOIOLO rHVQ== X-Gm-Message-State: AOAM531bFGC9CzKzYBXEnMO/NPljKReOizydaNXLPoerA9Y9eZd6qaZn cEIAFIjX5tVQcVCySsajxnKyBK++2r4= X-Google-Smtp-Source: ABdhPJyvcE3iUA8CGfgOSOr8G1NOZTc45QwQHbSCcw71SKnoznMROfiZmW2cR6T02+mEXjYqDMwCCg== X-Received: by 2002:a05:600c:3588:: with SMTP id p8mr1139285wmq.71.1612481397459; Thu, 04 Feb 2021 15:29:57 -0800 (PST) Received: from [127.0.0.1] ([13.74.141.28]) by smtp.gmail.com with ESMTPSA id a27sm9613608wrc.94.2021.02.04.15.29.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 04 Feb 2021 15:29:56 -0800 (PST) Message-Id: In-Reply-To: References: Date: Thu, 04 Feb 2021 23:29:52 +0000 Subject: [PATCH v5 3/3] range-diff(docs): explain how to specify commit ranges Fcc: Sent MIME-Version: 1.0 To: git@vger.kernel.org Cc: Uwe =?utf-8?q?Kleine-K=C3=B6nig?= , Eric Sunshine , Johannes Schindelin , Johannes Schindelin Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org From: Johannes Schindelin From: Johannes Schindelin There are three forms, depending whether the user specifies one, two or three non-option arguments. We've never actually explained how this works in the manual, so let's explain it. Signed-off-by: Johannes Schindelin --- Documentation/git-range-diff.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Documentation/git-range-diff.txt b/Documentation/git-range-diff.txt index 9701c1e5fdd5..a968d5237dae 100644 --- a/Documentation/git-range-diff.txt +++ b/Documentation/git-range-diff.txt @@ -28,6 +28,17 @@ Finally, the list of matching commits is shown in the order of the second commit range, with unmatched commits being inserted just after all of their ancestors have been shown. +There are three ways to specify the commit ranges: + +- ` `: Either commit range can be of the form + `..`, `^!` or `^-`. See `SPECIFYING RANGES` + in linkgit:gitrevisions[7] for more details. + +- `...`. This is equivalent to + `.. ..`. + +- ` `: This is equivalent to `.. + ..`. OPTIONS -------