Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion: git: --fixup: problem with _describe -2V and duplicate commit subjects
- X-seq: zsh-workers 35096
- From: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: completion: git: --fixup: problem with _describe -2V and duplicate commit subjects
- Date: Wed, 13 May 2015 14:41:16 +0200
- 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=
- In-reply-to: <20150330182141.GC3767@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <5510AAD4.8040807@thequod.de> <20150329054753.GA2766@tarsus.local2> <20150330182141.GC3767@tarsus.local2>
-----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 '=<TAB>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-----
Messages sorted by:
Reverse Date,
Date,
Thread,
Author