From 8a59aed6967b5283cbf0c7d32559b11d3a841a37 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 9 Feb 2016 03:23:20 +0000 Subject: 37924: Completion: _git: Complete files for 'check-ignore' Also, don't leak the parameter 'ret'; the leak was theoretical because the caller immediately wrote to that parameter. --- ChangeLog | 3 +++ Completion/Unix/Command/_git | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 40349a82f..76add9f27 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2016-02-09 Daniel Shahaf + * 37924: Completion/Unix/Command/_git: Completion: _git: + Complete files for 'check-ignore' + * 37923: Completion/Debian/Command/_bts: Completion: _bts: Fix quoting of $DEBEMAIL. diff --git a/Completion/Unix/Command/_git b/Completion/Unix/Command/_git index 65916f01e..b7eaf2e49 100644 --- a/Completion/Unix/Command/_git +++ b/Completion/Unix/Command/_git @@ -406,7 +406,7 @@ _git-check-ignore () { '-z[make output format machine-parseable and treat input-paths as NUL-separated with --stdin]' \ '(-n --non-matching)'{-n,--non-matching}'[show given paths which do not match any pattern]' \ '--no-index[do not look in the index when undertaking the checks]' \ - '*:: :->file' && ret=0 + '*:: :_files' } (( $+functions[_git-check-mailmap] )) || -- cgit 1.4.1