Displaying 1 result from an estimated 1 matches for "fetchandrebase".
2012 Aug 21
2
[LLVMdev] A script for updating all the nested git clients
...llvm.org/git/llvm.git" > /dev/null; do
if ! git remote -v 2> /dev/null > /dev/null; then
echo "Could not find the root of the llvm git repository"
exit 1
fi
cd `git rev-parse --show-toplevel`/../
done
cd `git rev-parse --show-toplevel` > /dev/null
function fetchAndRebase {
if [ -d $1 ]; then
pushd $1 > /dev/null
if git status > /dev/null; then
git stash | grep "No local changes to save" > /dev/null
STASHED=$?
git fetch > /dev/null
git svn rebase -l > /dev/null
if [ $STASHED -ne 0 ]; then git stash pop...