From 755cfa774261a328109d9409149a5b5322451425 Mon Sep 17 00:00:00 2001 From: Jephte CLAIN Date: Fri, 22 May 2015 11:41:06 +0400 Subject: [PATCH] =?UTF-8?q?ne=20pas=20afficher=20les=20erreurs=20pour=20le?= =?UTF-8?q?s=20fonctions=20de=20compl=C3=A9tion=20de=20git?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/completion.d/ptools | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/completion.d/ptools b/lib/completion.d/ptools index 085c636..85bf02d 100644 --- a/lib/completion.d/ptools +++ b/lib/completion.d/ptools @@ -3,8 +3,8 @@ function __pdev_branches() { local prefix=origin/ { - git for-each-ref refs/heads/ --format='%(refname:short)' - git for-each-ref "refs/remotes/$prefix" --format='%(refname:short)' | grep -F "$prefix" | cut -c $((${#prefix} + 1))- + git for-each-ref refs/heads/ --format='%(refname:short)' 2>/dev/null + git for-each-ref "refs/remotes/$prefix" --format='%(refname:short)' 2>/dev/null | grep -F "$prefix" | cut -c $((${#prefix} + 1))- } | LANG=C sort -u | grep -vF HEAD | grep -vF master | @@ -12,6 +12,6 @@ function __pdev_branches() { grep -v '^hotfix-' } function __prel_branches() { - git for-each-ref --format='%(refname:short)' refs/heads | + git for-each-ref --format='%(refname:short)' refs/heads 2>/dev/null | grep -E '^(master$|release-)' }