Skip to content

Make git-completion Bash 4 compatible

Jonathan Nieder git 1 version New

Get series with b4
b4 am 20101215062403.GA20492@burratino

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3bash: get --pretty=m<tab> completion to work with bash v4contrib/completion/git-completion.bash+160 -760 replies
2/3bash: simple reimplementation of _get_comp_words_by_refcontrib/completion/git-completion.bash+110 -80 replies
3/3Merge branch 'master' (early part) into pd/bash-4-completioncontrib/completion/git-completion.bash+0 -00 replies

Reviews trailers per patch

None of the 3 patches has a Reviewed-by or Acked-by.

PatchSZEDER Gábor
1/3Explained-by
2/3Improved-by
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH v5.1 0/3] Make git-completion Bash 4 compatible
Quoted 8 lines · Junio C Hamano
Quoted 8 lines
Quoted 8 lines · Jonathan Nieder
Quoted 7 lines

Add a minimal implementation of _get_comp_words_by_ref, the routine used to work around bash 4.0's COMP_WORDS semantics.

Based on bash-completion 2.x (commit bf763033, 2010-10-26) but tweaked for simplicity and to allow zsh to at least parse the code.

[...]

Quoted 1 line

Sorry, but whose repository does that object live in?

Agh, sorry for the mess. Please fetch

git://repo.or.cz/git/jrn.git pd/bash-4-completion

to receive the following history:

o [maint-1.7.2] --- A --- B --- M [FETCH_HEAD] /
o [master (early part)]

[A] bash: get --pretty=m<tab> completion to work with bash v4 (by Peter)

[B] bash: simple reimplementation of _get_comp_words_by_ref (discussed above)

[M] Merge branch 'master' (early part) into pd/bash-4-completion (zsh compatibility)

[master (early part)] completion: fix zsh check under bash with 'set -u' (2010-10-28 11:45:00 -0700).

A and B are the patches sent previously in this thread, rebased on an older code base to avoid the zsh support. A combined diff for the merge 'M' will follow. Thoughts, suggestions, acks, test reports would be welcome.

Thanks for your patience.
Jonathan