From patchwork Sun Oct 21 08:41:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Duy Nguyen X-Patchwork-Id: 10650737 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 3D49A90 for ; Sun, 21 Oct 2018 08:41:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 21FA22873B for ; Sun, 21 Oct 2018 08:41:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 146F32874C; Sun, 21 Oct 2018 08:41:31 +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 9C7F42873B for ; Sun, 21 Oct 2018 08:41:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727126AbeJUQzA (ORCPT ); Sun, 21 Oct 2018 12:55:00 -0400 Received: from mail-lj1-f193.google.com ([209.85.208.193]:45581 "EHLO mail-lj1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726982AbeJUQzA (ORCPT ); Sun, 21 Oct 2018 12:55:00 -0400 Received: by mail-lj1-f193.google.com with SMTP id j4-v6so34250821ljc.12 for ; Sun, 21 Oct 2018 01:41:25 -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:mime-version :content-transfer-encoding; bh=jkaHtjwOUnHpk+jBvNS31Hz2s2FAw1Dwj894NF/kKCY=; b=LsbOmuUyHplJKLyNh91N4S3//D/+AfFGy3S3BI5eTvAnEw++P+AJBlqi9rqzT4muKM pEVbgeUrYL3TnPNIr1AjGaxP5e3VH/tLOO5eut2nxJ7TnkDH/gMhGxvKCnW45LqqtmFR NercSo4XCyqIWR+6u3Bomp81TS+bHGFA9dklDDQDS7Oqvb1JzLdqhd+a0DWW+uCCUmES 31osO6KDIICzIMnUb/ecVHNKPeTvmB9sqWS8D4LKO2RH2eJN5HF+4wgFFGz/sg+z0fYB 3ftJ4eR2YBpK/W3aJstdRmD2E4Damf/dJqM82L6j5qRv/aZ8A8e233zLkrzxpMdLaNV0 chAQ== 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:mime-version :content-transfer-encoding; bh=jkaHtjwOUnHpk+jBvNS31Hz2s2FAw1Dwj894NF/kKCY=; b=AgZPvmlhPHWDBAxsZZt9/LECvo9ibjY/Jax1jO9jCROlcuJCbxVCP0ATn/LyL9GAaE 1OSAeJ9pD4CFp3cqrvGYcqKrdzSt7mfULPcTU4mTZiy0xRBcB9Tlwmo3kf6Pl+kd+ev7 4eZZuzvaj/v+kDMFRb0a5izZJ1kxD+JxeWI/tNJl9i7pt068kCxc4tE0eUUZoU1cGhJk FaI4PGBfXx/il06LDw7ZEYK4j1aETUcUqQt6bV9FP0ftfttyIgFtjgcYnFPiCMUZq6Vm oDS8zIeczlepkdbkIHhNxCY2wxjEBwZfLyecdB51JLasL8Tz3fNk86wSACT+bWtAbrka e3kg== X-Gm-Message-State: ABuFfogRbpJat39eygYYWFsPPTLHm1bfAZn61CfVUoBaxLzNN//NdcP/ f4Xfcrt8TvwoQn3M4ZfGxjpNhr17 X-Google-Smtp-Source: ACcGV61+nmjsriqSN0UavB/CpcvkOi9UuS+r27P0OwbIzva5uigUIMeclk0PZtD6LK/u4nDGihuwPQ== X-Received: by 2002:a2e:47:: with SMTP id 68-v6mr28840876lja.123.1540111284069; Sun, 21 Oct 2018 01:41:24 -0700 (PDT) Received: from localhost.localdomain (c80-216-12-205.bredband.comhem.se. [80.216.12.205]) by smtp.gmail.com with ESMTPSA id d126-v6sm6163918lfe.75.2018.10.21.01.41.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 21 Oct 2018 01:41:23 -0700 (PDT) From: =?utf-8?b?Tmd1eeG7hW4gVGjDoWkgTmfhu41jIER1eQ==?= To: git@vger.kernel.org Cc: Eric Sunshine , =?utf-8?b?Tmd1eeG7hW4gVGjDoWkg?= =?utf-8?b?Tmfhu41jIER1eQ==?= Subject: [PATCH] completion: use __gitcomp_builtin for format-patch Date: Sun, 21 Oct 2018 10:41:02 +0200 Message-Id: <20181021084102.8318-1-pclouds@gmail.com> X-Mailer: git-send-email 2.19.1.647.g708186aaf9 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 helps format-patch gain completion for a couple new options, notably --range-diff. Signed-off-by: Nguyễn Thái Ngọc Duy --- Of course it will be even better if I could complete the ref for --range-diff=, but maybe another day. contrib/completion/git-completion.bash | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/contrib/completion/git-completion.bash b/contrib/completion/git-completion.bash index c8fdcf8644..065b922777 100644 --- a/contrib/completion/git-completion.bash +++ b/contrib/completion/git-completion.bash @@ -1533,12 +1533,8 @@ _git_fetch () } __git_format_patch_options=" - --stdout --attach --no-attach --thread --thread= --no-thread - --numbered --start-number --numbered-files --keep-subject --signoff - --signature --no-signature --in-reply-to= --cc= --full-index --binary - --not --all --cover-letter --no-prefix --src-prefix= --dst-prefix= - --inline --suffix= --ignore-if-in-upstream --subject-prefix= - --output-directory --reroll-count --to= --quiet --notes + --full-index --not --all --no-prefix --src-prefix= + --dst-prefix= --notes " _git_format_patch () @@ -1551,7 +1547,7 @@ _git_format_patch () return ;; --*) - __gitcomp "$__git_format_patch_options" + __gitcomp_builtin format-patch "$__git_format_patch_options" return ;; esac