diff options
author | m0viefreak <m0viefreak.cm@googlemail.com> | 2014-02-17 05:00:36 +0100 |
---|---|---|
committer | Frank Terbeck <ft@bewatermyfriend.org> | 2014-02-18 12:19:23 +0100 |
commit | 946a99a0b34adc5cbb57fb5e8f3739cc0fcd8ed5 (patch) | |
tree | 8afea4c88c7f91e0381ccd0bd0803ec472b669ff /ChangeLog | |
parent | 76ab661df3015f5adc10ff58ba5ea773901753bf (diff) | |
download | zsh-946a99a0b34adc5cbb57fb5e8f3739cc0fcd8ed5.tar.gz zsh-946a99a0b34adc5cbb57fb5e8f3739cc0fcd8ed5.tar.xz zsh-946a99a0b34adc5cbb57fb5e8f3739cc0fcd8ed5.zip |
32396: _git: fix __git_committish_range_{first,last} and __git_is_committish_range
- Ranges with 3 dots would always fail, because the non-greedy expansion %..(.|)* in __git_committish_range_first would only remove '..' and never three dots. 'a...b' would end up in 'a.'. Use ${${1%..*}%.} instead. - Use a similar approach for __git_committish_range_last. - Wrap them in another expansion to replace empty results with 'HEAD'. Git man-page states omitted range ending are being replaced with HEAD. This rule has to be followed to make completions like 'git log foo.. -- <tab>' work properly. - Add an additional check to make sure none of the extracted first/last parts contain additional '..' in invalied ranges such as 'a..b..c'. This gets rid of the 'TODO:' and ideally saves a few unneded calls to git rev-parse.
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog index ef4b622e7..3e6f3e2e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-02-18 m0viefreak <m0viefreak.cm@googlemail.com> + + * 32396: Completion/Unix/Command/_git: _git: fix + __git_committish_range_{first,last} and __git_is_committish_range + 2014-02-17 Barton E. Schaefer <schaefer@zsh.org> * unposted (users/18468): Doc/Zsh/builtins.yo, Doc/Zsh/params.yo: |