Skip to content

completion: Fixes and better non-work-tree support

Ted Pavlic git 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4completion: For consistency, changed "git rev-parse" to __gitdir calls.contrib/completion/git-completion.bash+2 -20 replies
1/4completion: For consistency, changed "git rev-parse" to __gitdir calls.contrib/completion/git-completion.bash+2 -20 replies
2/4completion: Use consistent if [...] convention. No test.contrib/completion/git-completion.bash+11 -2010 replies
2/4completion: Use consistent if [...] convention. No test.contrib/completion/git-completion.bash+11 -200 replies
3/4completion: Better __git_ps1 support when not in working directorycontrib/completion/git-completion.bash+22 -141 reply
3/4completion: Better __git_ps1 support when not in working directorycontrib/completion/git-completion.bash+23 -140 replies
4/4completion: More fixes to prevent unbound variable errors.contrib/completion/git-completion.bash+4 -41 reply
4/4completion: More fixes to prevent unbound variable errors.contrib/completion/git-completion.bash+4 -40 replies

Reviews trailers per patch

All 8 patches have a Reviewed-by or Acked-by.

PatchShawn O. Pearce
1/4A-b A-b
1/4A-b A-b
2/4A-b
2/4A-b
3/4A-b A-b
3/4A-b A-b
4/4A-b A-b
4/4A-b A-b

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 0/4] completion: Fixes and better non-work-tree support

The first patch has already been Acked by spearce.

The second patch uses a consistent "if..." convention throughout the completion script.

The third patch improves how the __git_ps1 works when (a) the CWD is a git dir and (b) when the CWD has a .git but no .git/HEAD.

The fourth patch fixes unbound variable errors by replacing $__vars with ${__var-}s.

Ted Pavlic (4):
completion: For consistency, changed "git rev-parse" to __gitdir
calls.
completion: Use consistent if [...] convention. No test.
completion: Better __git_ps1 support when not in working directory
completion: More fixes to prevent unbound variable errors.

 contrib/completion/git-completion.bash |   75 ++++++++++++++++----------------
 1 files changed, 37 insertions(+), 38 deletions(-)