mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
Add newlines and info when updating.
This commit is contained in:
parent
b959922708
commit
944384ed55
1 changed files with 3 additions and 0 deletions
|
|
@ -68,13 +68,16 @@ function svnsafeup() {
|
||||||
echo -n "diffstat: "
|
echo -n "diffstat: "
|
||||||
echo $diffstat | tail -n1
|
echo $diffstat | tail -n1
|
||||||
echo $diffstat | sed 's/^/ /'
|
echo $diffstat | sed 's/^/ /'
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
echo "svn log -r $range:"
|
echo "svn log -r $range:"
|
||||||
svn log -r $range | sed 's/^/ /'
|
svn log -r $range | sed 's/^/ /'
|
||||||
|
echo
|
||||||
echo "$diffcmd:"
|
echo "$diffcmd:"
|
||||||
echo $diff | sed 's/^/ /' | sed '/^ Index: / !s/^/ /'
|
echo $diff | sed 's/^/ /' | sed '/^ Index: / !s/^/ /'
|
||||||
} | view -c 'set foldnestmax=2 foldlevel=0 shiftwidth=2 foldmethod=indent' -
|
} | view -c 'set foldnestmax=2 foldlevel=0 shiftwidth=2 foldmethod=indent' -
|
||||||
read "answer?continue to 'svn up'? (ctrl-c to abort, y to continue) " || return 1
|
read "answer?continue to 'svn up'? (ctrl-c to abort, y to continue) " || return 1
|
||||||
[[ $answer == "y" ]] || return 1
|
[[ $answer == "y" ]] || return 1
|
||||||
|
echo "Updating from $from to $to.."
|
||||||
svn up -r $to
|
svn up -r $to
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue