tests/test-diff-ignore-whitespace
changeset 3199 096f1c73cdc3
parent 2610 7a87aebd848e
child 4878 372d93f03d3a
equal deleted inserted replaced
3198:a32f65549b9e 3199:096f1c73cdc3
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 # GNU diff is the reference for all of these results.
     3 # GNU diff is the reference for all of these results.
     4 
     4 
     5 hgdiff() {
     5 hgdiff() {
     6     hg diff "$@" | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
     6     hg diff --nodates "$@"
     7                   -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
       
     8 }
     7 }
     9 
     8 
    10 test_added_blank_lines() {
     9 test_added_blank_lines() {
    11     printf '\nhello world\n\ngoodbye world\n\n' >foo
    10     printf '\nhello world\n\ngoodbye world\n\n' >foo
    12 
    11