title: Get line numbers of differences in two files when performing a diff on two files in Windows
body: <p>For the purposes of code review, after an existing source file is modified, we only review lines of code that have been changed in those source files.<br>
  After I make changes to source files in a repository, I must communicate the lines of code that have changed in a source file before we do our peer code reviews.  </p>
  
  <p>I am able to see a visual diff using WinMerge, and I am happy with what it does for me, but the only requirement for my co-workers is simply to know the file name and the line numbers that need to be reviewed.  </p>
  
  <p>Is there a way to get only the line numbers of a changed file?  The types of files would be text source files, such as Javascript, Java, XML, XSL, etc. </p>
  
  <p>Sample files--</p>
  
  <p>foo (new version):</p>
  
  <pre><code>a
  b
  c
  d
  e
  f
  g
  h
  i
  j
  k
  </code></pre>
  
  <p>foo (old version):</p>
  
  <pre><code>a
  b
  C
  d
  h
  i
  k
  </code></pre>
  
  <p>The output I'm looking for:</p>
  
  <pre><code>foo: 3, 5-7, 10-11
  </code></pre>
  
  <p>OR</p>
  
  <pre><code>foo:
  3
  5-7
  10-11
  </code></pre>
  
  <p>I'm sure that some program allows for this.  I just can't find one.  Any suggestions?  I'm currently using WinMerge, but any program that runs on Windows will be fine with me.  It would be preferable if the software is open-source or freeware.</p>
  
  <p>EDIT:
  GNU DiffUtils is close to what I want, but not exactly fitting my needs.  Looking at the command line options, I see "-q" (or "--brief") as a simplified diff, but it's TOO simple.
  Output:</p>
  
  <pre><code>C:\Program Files\GnuWin32\bin&gt;diff.exe -q foo1.txt foo2.txt
  Files foo1.txt and foo2.txt differ
  </code></pre>
  
  <p>Normal diff output:</p>
  
  <pre><code>C:\Program Files\GnuWin32\bin&gt;diff.exe foo1.txt foo2.txt
  3c3
  &lt;     c
  ---
  &gt;     C
  5,7d4
  &lt;     e
  &lt;     f
  &lt;     g
  10,11c7
  &lt;     j
  &lt;     k
  ---
  &gt;     k
  \ No newline at end of file
  </code></pre>
  
  <p>diff -u output:</p>
  
  <pre><code>C:\Program Files\GnuWin32\bin&gt;diff.exe -u foo1.txt foo2.txt
  --- foo1.txt    2010-11-09 15:47:12.447916000 -0600
  +++ foo2.txt    2010-11-09 15:47:36.129954700 -0600
  @@ -1,11 +1,7 @@
       a
       b
  -    c
  +    C
       d
  -    e
  -    f
  -    g
       h
       i
  -    j
  -    k
  +    k
  \ No newline at end of file
  </code></pre>
  
  <p>I'm looking for something more informative than diff -q, but less informative than diff -u and diff.  Any diff ninjas out there who are aware of different options to allow this?  </p>
  
  <p>I will always be comparing a new, recently modified file to an older one.  I only need the things that need reviewing on the new file.</p>