Subversion: Difference between revisions

From miki
Jump to navigation Jump to search
(Colored diff)
No edit summary
Line 1: Line 1:
== References ==
* http://subversion.apache.org/, home of Apache SubVersion

== Configuration ==
== Configuration ==
<ul>
<ul>

Revision as of 10:19, 4 July 2011

References

Configuration

  • Colored diff — Either define colordiff as diff-cmd in ~/.subversion/config:
  • diff-cmd = colordiff
    

    However, to keep the internal svn diff tool, you need to define your own function & alias. This will also highlight diff header in green:

    function svnwrap()
    {
        if [ "$1" = "diff" ] ; then
    		"svn" "$@" | colordiff | less -FRX
    	else
    		"svn" "$@"
    	fi
    }
    alias svn=svnwrap
    

    To page the output, use | less -R

Examples

  • Checking out a project
svn co svn+ssh://ftp.noekeon.org/opt/www/daemenj/web/private/SVN/Keccak