Most of the time, we will be scrambling around the svn status and check-ins. Below are the aliases which are good to have and it is very handy.
Below 2 are pretty common when you make local file changes.
alias unk "svn st | grep ^\? | awk '{print $2}'"
alias mod "svn st | grep ^M | awk '{print $2}'"
Below 2 are very interesting cmds;
'new' will list out the new files in svn database which will comes to your database if you do svn update.
alias new "svn st -u | grep \* | grep ' ' | awk '{print $2}'"
'old' will list out the already exisiting files which has changes in svn database.
alias old "svn st -uv | grep \* | awk '{print $5}' | sort"
Just copy-paste these aliases and enjoy the benefits :-)
No comments:
Post a Comment