Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

git-svn support? #93

Open
d33tah opened this issue Jun 1, 2015 · 0 comments
Open

git-svn support? #93

d33tah opened this issue Jun 1, 2015 · 0 comments

Comments

@d33tah
Copy link

d33tah commented Jun 1, 2015

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant