* [PATCH 2/2] diff-files --quick
@ 2007-03-14 18:24 Junio C Hamano
0 siblings, 0 replies; only message in thread
From: Junio C Hamano @ 2007-03-14 18:24 UTC (permalink / raw
To: git
This teaches git-diff-files backend to exit early under --quick option.
Signed-off-by: Junio C Hamano <junkio@cox.net>
---
* And as an example, this converts diff-files. Other backends
will follow, but the most interesting one would be tree-diff.
diff-lib.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/diff-lib.c b/diff-lib.c
index f9a1a10..3ef5d76 100644
--- a/diff-lib.c
+++ b/diff-lib.c
@@ -324,6 +324,9 @@ int run_diff_files(struct rev_info *revs, int silent_on_removed)
struct cache_entry *ce = active_cache[i];
int changed;
+ if (revs->diffopt.quick && diff_queued_diff.nr)
+ break;
+
if (!ce_path_match(ce, revs->prune_data))
continue;
--
1.5.0.3.1036.g6baf1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-03-14 18:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-03-14 18:24 [PATCH 2/2] diff-files --quick Junio C Hamano
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).