Merge branch 'jc/maint-diff-q-filter' into maint
authorJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2011 23:23:34 +0000 (16:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 1 Apr 2011 23:23:34 +0000 (16:23 -0700)
* jc/maint-diff-q-filter:
  diff --quiet: disable optimization when --diff-filter=X is used

1  2 
diff-lib.c
t/t4040-whitespace-status.sh

diff --cc diff-lib.c
index 392ce2bef05746cea7922d39da67bf25d1d3d192,bfa65033734452faae0d5f4365a817f9e35b3e01..f8e33256ebe7ecd6ebf69669d9bfe50488c01fa1
@@@ -100,10 -72,10 +100,11 @@@ int run_diff_files(struct rev_info *rev
                unsigned int oldmode, newmode;
                struct cache_entry *ce = active_cache[i];
                int changed;
 +              unsigned dirty_submodule = 0;
  
                if (DIFF_OPT_TST(&revs->diffopt, QUICK) &&
-                       DIFF_OPT_TST(&revs->diffopt, HAS_CHANGES))
+                   !revs->diffopt.filter &&
+                   DIFF_OPT_TST(&revs->diffopt, HAS_CHANGES))
                        break;
  
                if (!ce_path_match(ce, revs->prune_data))
Simple merge