summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: be7db6e)
raw | patch | inline | side by side (parent: be7db6e)
author | Junio C Hamano <junkio@cox.net> | |
Sun, 2 Apr 2006 02:52:58 +0000 (18:52 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 2 Apr 2006 02:55:56 +0000 (18:55 -0800) |
Now, using --unpacked without limit_list() does not make much
sense, but this is parallel to the earlier --max-age fix.
Signed-off-by: Junio C Hamano <junkio@cox.net>
sense, but this is parallel to the earlier --max-age fix.
Signed-off-by: Junio C Hamano <junkio@cox.net>
revision.c | patch | blob | history |
diff --git a/revision.c b/revision.c
index 558ed01a5172d07c3af55ae2279d01bb0d6a5223..07cc86ffcfac577e05aeafefe31e6b5b902b0a6e 100644 (file)
--- a/revision.c
+++ b/revision.c
* that we'd otherwise have done in limit_list().
*/
if (!revs->limited) {
- if (revs->max_age != -1 && (commit->date < revs->max_age))
+ if ((revs->unpacked &&
+ has_sha1_pack(commit->object.sha1)) ||
+ (revs->max_age != -1 &&
+ (commit->date < revs->max_age)))
continue;
add_parents_to_list(revs, commit, &revs->commits);
}