Code

Skip timestamp differences for diff --no-index
authorMichael Spang <mspang@uwaterloo.ca>
Wed, 18 Feb 2009 06:48:06 +0000 (01:48 -0500)
committerJunio C Hamano <gitster@pobox.com>
Wed, 18 Feb 2009 18:55:33 +0000 (10:55 -0800)
commitd61027b21f403a74ba16191756d22717a2e95bd4
treee40142b80501bcbed2b27931d3a1dcc263fb4b71
parentbed5122f23c3584f2bae43e1af2f41fbe939c971
Skip timestamp differences for diff --no-index

We display empty diffs for files whose timestamps have changed.
Usually, refreshing the index makes those empty diffs go away.
However, when not using the index they are not very useful and
there is no option to suppress them.

This forces on the skip_stat_unmatch option for diff --no-index,
suppressing any empty diffs. This option is also used for diffs
against the index when "diff.autorefreshindex" is set, but that
option does not apply to diff --no-index.

Signed-off-by: Michael Spang <mspang@uwaterloo.ca>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
diff-no-index.c
t/t4013-diff-various.sh
t/t4013/diff.diff_--no-index_dir_dir3 [new file with mode: 0644]