fix whitespace issues with git-pull-all-branches
This commit is contained in:
parent
3d173a7832
commit
4b8ed5eba6
1 changed files with 5 additions and 5 deletions
10
zsh/zshrc
10
zsh/zshrc
|
|
@ -259,14 +259,14 @@ git-pull-all-branches() {
|
||||||
echo "$pwd is not part of a git repo"
|
echo "$pwd is not part of a git repo"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
origbranch=$(git branch | fgrep '*' | sed -e 's/\*//')
|
origbranch=$(git branch | fgrep '*' | sed -e 's/\* //')
|
||||||
bs=($@)
|
bs=($@)
|
||||||
[[ -z "$bs" ]] && bs=($(git branch | sed -e 's/\*//'))
|
[[ -z "$bs" ]] && bs=($(git branch | sed -e 's/\* //'))
|
||||||
for b ($bs) {
|
for b ($bs) {
|
||||||
git checkout "$b"
|
git checkout $b
|
||||||
git pull origin "$b"
|
git pull origin $b
|
||||||
}
|
}
|
||||||
git checkout "$origbranch"
|
git checkout $origbranch
|
||||||
}
|
}
|
||||||
|
|
||||||
function e() {
|
function e() {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue