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

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



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I've noticed that with duplicate descriptions for different commits,
the new completion for --fixup (__git_recent_commits) does not behave
properly, triggered by the "-2V" used with _describe.

When completing "git commit --fixup=" in a repo with two commits having
"init" as its subject:

Without "-2V":

 -- commit object name --
b1fc0ca  05a98c0  -- init                                                         

With "-2V":

 -- commit object name --
- -- init                                                         
 -- commit object name --
b1fc0ca                          05a98c0

This does not only affect the duplicate commits, but will move all
hashes to a separate "commit object name" section, leaving the
descriptions without them.

This was added in 236da69, where the options are passed on to next_label.


Regards,
Daniel.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iD8DBQFVEI4jfAK/hT/mPgARAmF/AKDwkOg7vI6dxorebP0u7ykceLuV5gCcDBOj
0H8Vrng3rwCE8mmTU6tK4x0=
=5L0N
-----END PGP SIGNATURE-----



Messages sorted by: Reverse Date, Date, Thread, Author