-
Notifications
You must be signed in to change notification settings - Fork 1
/
svn
37 lines (33 loc) · 867 Bytes
/
svn
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# subversion aliases
alias ss='svn status'
alias ssm='ss | grep "^[MAD]"'
alias sc='svn commit'
alias scm='sc -m'
alias sup='svn up'
alias svn-clean="svn status | grep '^?' | awk '{print $2}' | xargs rm -rf"
alias svn-add="svn st | grep '^?' | sed 's/^[? ]*/\"/' | sed 's/$/\"/' | xargs svn add"
alias svn-undo-del="svn status | grep '^D' | awk '{print $2}' | xargs svn revert"
alias svn-ignore="svn propedit svn:ignore"
alias svn-revert="ss | grep '^M' | xargs svn revert"
function sd {
svn diff $@ | colordiff | diff-so-fancy
}
function sdw {
sd -x -w $@
}
function sdeol {
sd -x --ignore-eol-style $@
}
function sdsum {
svn diff -r$1:HEAD --summarize
}
function svnlol {
svn log $@ | perl -l40pe 's/^-+/\n/'
}
alias svn-lol='svnlol'
alias scr='svn commit --non-recursive -m'
alias sup.='sup'
alias sup¸='sup'
alias sup^='sup'
alias suo='sup'