Jonathan Polansky

A pretty good webpage.

List only the path and filenames of files with differences using subversion svn

The Subversion svn command has built in diff functionality but it is more limited than GNU diff. It doesn’t allow you to use the ‘-q’ option to “Report only whether the files differ, not the details of the differences.” Luckily, svn allows you to specify an external “diff” command and then pass it arguments.  Use the following command to list only files with local modifications and changes within a subversion checkout.

svn diff --diff-cmd "diff" -x "-q" . | grep Index | cut -d " " -f 2


Tagged as , , + Categorized as Tech

Leave a Reply