From d61027b21f403a74ba16191756d22717a2e95bd4 Mon Sep 17 00:00:00 2001 From: Michael Spang Date: Wed, 18 Feb 2009 01:48:06 -0500 Subject: 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 Signed-off-by: Junio C Hamano --- t/t4013/diff.diff_--no-index_dir_dir3 | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 t/t4013/diff.diff_--no-index_dir_dir3 (limited to 't/t4013') diff --git a/t/t4013/diff.diff_--no-index_dir_dir3 b/t/t4013/diff.diff_--no-index_dir_dir3 new file mode 100644 index 0000000000..2142c2b9ad --- /dev/null +++ b/t/t4013/diff.diff_--no-index_dir_dir3 @@ -0,0 +1,2 @@ +$ git diff --no-index dir dir3 +$ -- cgit v1.2.3