git-up
git-up copied to clipboard
git-svn support?
Here's my ~/bin/git-sfetch:
#!/bin/sh
# Runs git svn fetch && git svn rebase, stashing the working tree changes if
# there are any.
#
# AUTHOR: Jacek Wielemborek, licensed under WTFPL.
GIT_MODIFIED=0
git diff-index --quiet --ignore-submodules HEAD -- || GIT_MODIFIED=1
if [ $GIT_MODIFIED -eq 1 ]; then
git stash
fi
git svn fetch
git svn rebase
if [ $GIT_MODIFIED -eq 1 ]; then
git stash pop
fi
I'm getting the impression that since this simplifies the process of pulling Git repositories, this is possibly something that git-up could make simpler. Perhaps adding support for git-svn fits into the concept of git-up?