git-up icon indicating copy to clipboard operation
git-up copied to clipboard

git-svn support?

Open d33tah opened this issue 10 years ago • 0 comments

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?

d33tah avatar Jun 01 '15 00:06 d33tah