From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17987 invoked by alias); 13 May 2015 12:41:37 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 35096 Received: (qmail 21357 invoked from network); 13 May 2015 12:41:23 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=thequod.de; h= content-transfer-encoding:content-type:content-type:in-reply-to :references:subject:subject:mime-version:user-agent:from:from :date:date:message-id:received:received; s=postfix2; t= 1431520876; bh=nkW//TXh8HaiDTdKNXrCYdcPOqYYD5bPaMzlWBmCz6E=; b=e G9gSIgII7mY59SGWJG4luzk5atVV2IkyUUxdRtUR4P7S0HOeKXZKNK8v2jP9CgmC N7B8/4L30g7JoFvX/pfXbOYk+D4JqXnOL9wVnPwQXniyJanvspcaGq+XNHxOdnGJ ewEJ1UcswekuxCptV4+0RRQ/a0Xk/2VzcgDQf10j90= Message-ID: <5553466C.7060100@thequod.de> Date: Wed, 13 May 2015 14:41:16 +0200 From: Daniel Hahler User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 MIME-Version: 1.0 To: Zsh Hackers' List Subject: Re: completion: git: --fixup: problem with _describe -2V and duplicate commit subjects References: <5510AAD4.8040807@thequod.de> <20150329054753.GA2766@tarsus.local2> <20150330182141.GC3767@tarsus.local2> In-Reply-To: <20150330182141.GC3767@tarsus.local2> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 30.03.2015 20:21, Daniel Shahaf wrote: > Daniel Shahaf wrote on Sun, Mar 29, 2015 at 05:47:53 +0000: >>> As a workaround I could imagine also adding the date, which is useful >>> by itself: > ... >> Actually, I'm tempted to deduplicate it by throwing the hash into the >> description: > > Another option: add the "HEAD~15" gitrevisions(7) identifier of the > commit to the description, which also uniquifies, isn't redundant, and > may be easier to type. > > ... > > I came up with this because copying the hex digits is annoying. (It's > basically a captcha.) I'm half seriously considering binding '=' to > a widget that inserts '=HEAD~' if [[ $LBUFFER == *--fixup ]], to > allow me to type just '--fixup=12' to get '--fixup=HEAD~12'. I like this idea. Have you experimented further with it? Cheers, Daniel. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) iD8DBQFVU0ZsfAK/hT/mPgARApCpAKC1uGGr60H19PL3UVcG434OpuAtTACg453s wncXHgtGuvzn3mJVU4hmR4M= =n9hB -----END PGP SIGNATURE-----