InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Svn tutorials

  • Diff last committed change
  • Edit log message for a committed revision
  • Make file executable on Linux
  • Recover svn lost password on Linux
  • Short diff without context
  • Svn log of all files in a directory
  • Svn log of entire repository
  • Undo last commit
  • View older version of a file
 
  • Home
  • > Tutorials
  • > Svn

Svn – short diff without context

By admin on Jan 12, 2016

Using svn command line option

Use the following diff command to avoid diff context

$ svn diff --diff-cmd=diff -x -U0

Option -x passes option -U0 to the diff command which make 0 line context.

Using alias

Set the following svndiff alias in ~/.bash_profile

alias svndiff='svn diff --diff-cmd=diff -x -U0 -x -w'

Now source the ~/.bash_profile. It is not needed when we login again.

$ source ~/.bash_profile

After that we can simply use svndiff

$ svndiff

Suggested posts:

  1. How to disable sleep during android usb debugging
  2. WordPress – write custom php log to separate file
  3. Vim – highlight and move to matching bracket
  4. AngularJS ng-model
  5. AngularJS format date using date filter
  6. wget handy commands
  7. Dig – list all dns records
  8. Install and setup Jenkins on Ubuntu Linux
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Linux, Linux/Unix Command Line, Svn, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress