On 6/21/2017 10:42 AM, Daniel Dumitriu wrote:
A patch (against trunk, 14d8d31b1a) that adds the option '--numstat' to
'fossil diff' for functionality similar to 'git diff --numstat': for
each file in the diff a line is output with three elements: number of
added lines, number of removed lines, and the file path, separated with
tabs.

Excellent!

Two minor changes:
+ "int numStat = 0" is referenced so it should be removed
  from your patch
+ the help text for "f help diff" was not changed

Patch for help text attached
--- ../../../diffcmd.txt        2017-06-21 13:14:33.204724900 -0500
+++ diffcmd.c   2017-06-21 13:26:58.641361500 -0500
@@ -835,6 +864,7 @@
 **   --exec-rel-paths           Force relative path names with external 
commands.
 **   --from|-r VERSION          Select VERSION as source for the diff
 **   --internal|-i              Use internal diff logic
+**   --numstat                  Display statistics rather than the actual diff
 **   --side-by-side|-y          Side-by-side diff
 **   --strip-trailing-cr        Strip trailing CR
 **   --tk                       Launch a Tcl/Tk GUI for display
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to