All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
1 # Adds support for git-svn repositories.
3 # To make mr use this file, add a line like this inside the [DEFAULT]
4 # section of your ~/.mrconfig
5 #include = cat /usr/share/mr/git-svn
7 # Note that by default this makes mr update do a git svn fetch.
8 # Some might prefer it to do a git svn rebase, if you do, you can
9 # configure that as follows in your ~/.mrconfig:
10 #git_svn_update = git svn rebase
11 git_svn_update = git svn fetch
12 git_svn_status = git status -s "$@" || true; git --no-pager log --branches --not --remotes --simplify-by-decoration --decorate --oneline || true
13 git_svn_commit = git svn dcommit
14 git_svn_push = git svn dcommit
15 git_svn_record = git commit -a "$@"
16 git_svn_diff = git diff "$@"
17 git_svn_log = git svn log "$@"
20 -d "$ENV{MR_REPO}/.git" &&
21 `GIT_CONFIG="$ENV{MR_REPO}"/.git/config git config --get svn-remote.svn.url` eq ""
24 -d "$ENV{MR_REPO}/.git" &&
25 `GIT_CONFIG="$ENV{MR_REPO}"/.git/config git config --get svn-remote.svn.url` ne ""
28 url="`LC_ALL=C git config --get svn-remote.svn.url`" || true
29 if [ -z "$url" ]; then
30 error "cannot determine git svn url"
32 echo "Registering git svn url: $url in $MR_CONFIG"
33 mr -c "$MR_CONFIG" config "`pwd`" checkout="git svn clone '$url' '$MR_REPO'"
35 # vim:sw=8:sts=0:ts=8:noet