Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: completion: git: --fixup: problem with _describe -2V and duplicate commit subjects



-----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