author | Michael Spang <mspang@uwaterloo.ca> | |
Wed, 18 Feb 2009 06:48:06 +0000 (01:48 -0500) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Feb 2009 18:55:33 +0000 (10:55 -0800) | ||
commit | d61027b21f403a74ba16191756d22717a2e95bd4 | |
tree | e40142b80501bcbed2b27931d3a1dcc263fb4b71 | tree | snapshot |
parent | bed5122f23c3584f2bae43e1af2f41fbe939c971 | commit | diff |
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>
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 | diff | blob | history | |
t/t4013-diff-various.sh | diff | blob | history | |
t/t4013/diff.diff_--no-index_dir_dir3 | [new file with mode: 0644] | blob |