From: Manlio Perillo Date: Sat, 12 Jan 2013 18:35:59 GMT Subject: git-completion.bash should not add a space after a ref Message-ID: <50F1AD0F.7080503@gmail.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. This is not really a bug, but a small usability problem. When completing a reference, Bash will add a space after the reference name. As an example in: $git show master The problem is that an user may want to show a tree or blog object from master: $git show master:git.c A possible solution is to define a new __gitcomp_nospace function and use it where appropriate. Probably the __gitcomp_nospace should be used when git_complete_file is called, and __gitcomp_nl should be used when __git_complete_revlist is called, but I'm not sure. P.S.: it seems that __gitcomp_nl is **never** called with 4 arguments. Regards Manlio -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAlDxrQ8ACgkQscQJ24LbaURHmACfRXoM+uEVDgFUtZFzUcPC5oSZ FGsAnAxQf+SN7GrNljxU1io4IuayHmed =JRVU -----END PGP SIGNATURE-----