[viewvc-users] Re: How Can I Ignore Whitespace With Unified Diff?

Daniel Chartrand <[email protected]>
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Message-ID <B687039EFFE5C045B80D10B1B3D5B9D4010D2C5B__43006.9302245558$1257361409$gmane$org@nsexbe01.nstein.com>
Hey all, I figured this out.

Step 1) 

Create a script / wrap-around, something like: `chmod +x
/usr/local/viewvc-1.1.2/diff_no_cr` - with contents such as:

#!/bin/bash
/usr/bin/diff --strip-trailing-cr "$@"

Step 2) 

Change viewvc.conf:

## diff: Location of the GNU diff program, used for showing file
## version differences.
##
## Example:
## diff = /usr/bin/diff
##
diff = /usr/local/viewvc-1.1.2/diff_no_cr

Now, all is good.

Cheers.

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2414500

To unsubscribe from this discussion, e-mail: [[email protected]].
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.