Thread (2 messages) flat view 2 messages, 2 authors, 2016-06-15

Re: [PATCH 3/8] bundle: give list_prerequisites() loop body its own function

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:02

Junio C Hamano wrote:
Jonathan Nieder [off-list ref] writes:
quoted
@@ -209,33 +236,11 @@ static int list_prerequisites(int bundle_fd, struct rev_info *revs,
 	if (prepare_revision_walk(&boundary_revs))
 		return error("revision walk setup failed");
 
-	while ((rev = get_revision(&boundary_revs))) {
-		if (rev->object.flags & BOUNDARY) {
-...
-		} else {
+	while ((rev = get_revision(revs))) {
+		if (rev->object.flags & BOUNDARY)
+			list_prerequisite(bundle_fd, revs, rev);
+		else
 			rev->object.flags |= SHOWN;
-		}
You used to walk boundary_revs but now you walk revs that is given by the
caller
Agh!  Typo.  Thanks for catching it.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help