Skip to content

Instantly share code, notes, and snippets.

@rbriank
Created June 7, 2012 16:59
Show Gist options
  • Save rbriank/2890059 to your computer and use it in GitHub Desktop.
Save rbriank/2890059 to your computer and use it in GitHub Desktop.
bash alias for easier svn merging
alias s:merge='ruby -e "branch=ARGV.shift;ARGV.each{|r| cmd=%Q(svn merge https://subversion/svn/repo/#{branch} -c #{r}); puts cmd}"'
alias s:merge:live='ruby -e "branch=ARGV.shift;ARGV.each{|r| cmd=%Q(svn merge https://subversion/svn/repo/#{branch} -c #{r}); system(cmd)}"'
alias s:merge:dry='ruby -e "branch=ARGV.shift;ARGV.each{|r| cmd=%Q(svn merge https://subversion.looksmart.com/svn/plp/amp/#{branch} ->
# mergr branches/branch 123 124 125 ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment