ne pas afficher les erreurs pour les fonctions de complétion de git
This commit is contained in:
parent
2b5eb2aefc
commit
755cfa7742
|
@ -3,8 +3,8 @@
|
||||||
function __pdev_branches() {
|
function __pdev_branches() {
|
||||||
local prefix=origin/
|
local prefix=origin/
|
||||||
{
|
{
|
||||||
git for-each-ref refs/heads/ --format='%(refname:short)'
|
git for-each-ref refs/heads/ --format='%(refname:short)' 2>/dev/null
|
||||||
git for-each-ref "refs/remotes/$prefix" --format='%(refname:short)' | grep -F "$prefix" | cut -c $((${#prefix} + 1))-
|
git for-each-ref "refs/remotes/$prefix" --format='%(refname:short)' 2>/dev/null | grep -F "$prefix" | cut -c $((${#prefix} + 1))-
|
||||||
} | LANG=C sort -u |
|
} | LANG=C sort -u |
|
||||||
grep -vF HEAD |
|
grep -vF HEAD |
|
||||||
grep -vF master |
|
grep -vF master |
|
||||||
|
@ -12,6 +12,6 @@ function __pdev_branches() {
|
||||||
grep -v '^hotfix-'
|
grep -v '^hotfix-'
|
||||||
}
|
}
|
||||||
function __prel_branches() {
|
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-)'
|
grep -E '^(master$|release-)'
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue