vimdiff| | SVN diff

Source: Internet
Author: User

In the process of developing with SVN, I use SVN diff to see the difference between the content of this commit and the repository before each commit, but SVN diff defaults to print out the differences between the two codes, in order to be able to do a good code comparison in. subversion/ Config to modify the SVN diff Execution command, as follows:

#!/bin/sh# Configure your favorite diff program here. Diff= "/etc/alternatives/vimdiff" # Subversion provides the paths we need as the sixth and seventh # parameters. left=${6}right=${7}# Call the diff command (change the following line to make sense for# your merge program). $DIFF $RIGHT $LEFT # Return An errorcode of 0 if no differences were detected, 1 if some were.# any other errorcode would be treated as Fatal.

Later, each time you perform SVN diff, you will perform the above steps, which is very convenient for code checking. Because SVN diff is a comparison of all the changed files in the current directory, if there are too many files and exits in the middle, you can use: Diffoff (Exit all: diffoff!) to end the comparison.

vimdiff| | SVN diff

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.