bash - enhanced svn diff
Again i want to share a simple bash function for dealing with the svn diff
. I was tired to add the file i want to compare multiple times so i wrote a small wrapper function.
The syntax is the following.
net_bazzline_svn_diff https://svn.mydomain.org/trunk https://svn.mydomain.org/branches/my_branch module/myModule/myFile.foo
Enjoy it and be aware that there is no fancy validation logic inside.
##### # Calles svn diff for two repositories. # Call $repositoryUrlOne $repositoryUrlTwo $filePath # # @author stev leibelt # @since 2013-01-30 #### function net_bazzline_svn_diff () { if [ $# -eq 3 ]; then svn diff "$1""/""$3" "$2""/""$3" else echo 'No valid arguments supplied' fi }Sourceode also available on github.com.
Comments
Display comments as Linear | Threaded