From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_KAM_HTML_FONT_INVALID,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 29811 invoked from network); 17 Oct 2020 16:25:58 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Oct 2020 16:25:58 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1602951958; b=jPKWBxr/gCyl1rgh9uwMYkLVw/6P3WpgVRn0lLffeUuyBdlYy9aigYRxD+3f81bzGwRiATXONN LB1YtliPzuVuygWkDErEv1yaN1h/+fHxAJSb4xSS04UupA8zM2DLBD66Fm+x1Rgw9Ap7+vPjI5 ImhghD0EP4/7lw5a2bEYVYRNO/RzIuFRoAmDNfX9SzACI+BqsVYAf1n9rekAtMBzDXOg0X7Di9 SXVcZasey8G6RZlpio5/9knLIGsx/YKpqqyWPGD2tpB5NR3nigSPHYLJhxtgyMo1r8wSPAuSyq jW/sD4Sh8F72Fzsmg9qu5yZr+BXKVRfo0DKTf64SPK1umA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f179.google.com) smtp.remote-ip=209.85.167.179; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1602951958; bh=zbYe0E37QK3QBRuAmxQHcrftjnpmMJQdn8BgiNU01TQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=IChyzE11gmK6u6qTKz/m1LU73erC6+rALfsvIU9bzk/OEeq4Cv+QCHHb8mCZ9ytEYr3Hw9dlSw 68vApHiRAbEaRIQ50qTMWADRYRsVjR/08YZRnkUqakVkylsVJaEbp4ASiAkmqUS5V0J6Xe+epC njCwIwMDkNaTikj82f3AEamUpypDNjpEklNoiUDVJCkl7xW2FxBmqYnuw4GjH7xenQ4ncLswRN jGij29c8Frwl/dZLbtfkOGlkzit9ec98FUKE9qYKywpwhXSuyc6IHPxAFpPTHbhcvSNGaLMHe7 PWJ5AO/7ULF0gv4RzAvNmWgb2PcgMMU2KzuqmR8EiV8qkw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=zbYe0E37QK3QBRuAmxQHcrftjnpmMJQdn8BgiNU01TQ=; b=LgL/XI8Vp2g2FLDyWM6BbFbG8Z qUxcvAywm71Ok3ZauPhuqf+FWKRVd+Fi/gwgGUgVQd+7dTmvlf2t4QeydnvMHbkQRPWAuoJ4id8y8 LaKY+aROYbbbzb6pMiLBdFF7aOHHmuK4+kutViSCkxB9IInB+sTWV/0Tr2NIDUbSCGGhe8mWUiW1B kM0o3UV/yo0L92tn3BUVw2+P1iykcIupQOIrb74JtSwzijELH0fTLs3za5vMuUqKfbtBfJ5y1Cy9l NVVqLGM9SP2no3B5DaTNg15/NCyDyWQFUSpX7oOIOIZzZkpxgK3waSyeyP2fIrPBx+f+2RvvYvM95 AW8+qh+w==; Received: from authenticated user by zero.zsh.org with local id 1kTp1o-000FGy-TL; Sat, 17 Oct 2020 16:25:56 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f179.google.com) smtp.remote-ip=209.85.167.179; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oi1-f179.google.com ([209.85.167.179]:34201) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kTp1G-000EuI-3v; Sat, 17 Oct 2020 16:25:23 +0000 Received: by mail-oi1-f179.google.com with SMTP id n3so1752848oie.1; Sat, 17 Oct 2020 09:25:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=zbYe0E37QK3QBRuAmxQHcrftjnpmMJQdn8BgiNU01TQ=; b=Zm/zhb9DcW28sZod9gXfBApVNuW0Ai+YdHvx4/CdoyNcXu3X6rOKlgiUdSVgYKmRsc 4PB+mNYFu5RtSWW6RzMrn8LecJI2Dc0P3DrAeJd3bv6bgIe6RGh5aPOIbAyZNe4mb5RX 6XJliz8gsePLm67ZTc0YZvR8qi4wCLF4AuEhS7ewDOHv69ya+Oez9Cwp1GHTbAv4MK25 MB+CQNEAnGMSlleByl6ppV83h2+dzl3gd5eDlbyRUVApNZxKI2Zcb2NH297jTi10LY/f dyP2DOI5i2ZbCn1W6ObcMCKiklh5+Kbczzr1UI4xAsUhpUsBeM9+NGBHx2BagZBTcreV kGrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=zbYe0E37QK3QBRuAmxQHcrftjnpmMJQdn8BgiNU01TQ=; b=RC7ZdVr4xwb3h4B/RzmDSRG5/QkUBRu4j8F1CdqXSD5cx8msgI8EROsIHW+TkUMkwk w+iNhAxoFiOcYmW7DkCte9X+ffa80+TRPe2lZLEziAswxJELbPpdwIakjjMkddQ/KNrC Vxd56m9naZiNqr5De397NUUGNCx+84lZPNJ2FnbNM9njg8AGr+NZDMlTYNW0YpY9q74y w2uI960O8YPcteUPeX7yVhr8V9KwO8+CRM/hXl+81K292oJNQWYqHOyWzZX/WOfOpwnY FY6F9Q+DCWCIiqqpzGpdMIMTRFxgpXIQkIGxbepo3ckMmMJxDBpRL9tHRzBzxy3jjYL2 mPPA== X-Gm-Message-State: AOAM533uGnw6iZxdeZ1gM5jVLXav52cltyektZjCxfeeGKC6J5VNndI+ anzTSCIIvueUnFVf4s2kytoMWM9NGs2XU/9ezMjFW62IIhFVhQ== X-Google-Smtp-Source: ABdhPJznHaHFaJImwD622dBAhuklhzN+6meEaLsTy0+xoMpnnNmsn/FgaA6/WoY1mPWgJjMlLqCcUtEg4QmVzlSGlqo= X-Received: by 2002:a05:6808:b02:: with SMTP id s2mr5755654oij.3.1602951920880; Sat, 17 Oct 2020 09:25:20 -0700 (PDT) MIME-Version: 1.0 References: <51151-1602923600.276703@fJFe.e1_b.HfoP> In-Reply-To: From: Ahmad Ismail Date: Sat, 17 Oct 2020 22:25:09 +0600 Message-ID: Subject: Re: git diff HEAD - only show modified files in completion To: Bart Schaefer Cc: Oliver Kiddle , Zsh Users Content-Type: multipart/alternative; boundary="000000000000d610d305b1e05355" X-Seq: 26110 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: Archived-At: --000000000000d610d305b1e05355 Content-Type: text/plain; charset="UTF-8" I have asked this question on reddit afterwards. https://www.reddit.com/r/zsh/comments/jcju5h/extend_git_completion_function/ I got a solution from there. However, I am always looking for betterment. *Thanks and Best Regards,Ahmad Ismail* On Sat, Oct 17, 2020 at 9:24 PM Bart Schaefer wrote: > On Sat, Oct 17, 2020 at 1:33 AM Oliver Kiddle wrote: > > > > In this case, it's probably easier to tweak the original _git-diff > > function than to modify it from a wrapper. > > I was thinking there should be some way to implement this with a > zstyle by changing the program invoked by _call_program for the > "files" style, but I didn't have time to work out the incantation for > doing that in the nested subcommand context. > --000000000000d610d305b1e05355 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I got a solution from there. Howev= er, I am always looking for betterment.

=

Thanks and Best Regards,

Ahmad Is= mail



On Sat, Oct 17, 2020 at 9:24= PM Bart Schaefer <schaefer= @brasslantern.com> wrote:
On Sat, Oct 17, 2020 at 1:33 AM Oliver Kiddle <opk@zsh.org> wrote:
>
> In this case, it's probably easier to tweak the original _git-diff=
> function than to modify it from a wrapper.

I was thinking there should be some way to implement this with a
zstyle by changing the program invoked by _call_program for the
"files" style, but I didn't have time to work out the incanta= tion for
doing that in the nested subcommand context.
--000000000000d610d305b1e05355--