git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] rev-list --max-age, --max-count: support --boundary

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Feb 20, 2007, 00:27 UTC
Message-ID
<Pine.LNX.4.63.0702200126180.22628@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<7v8xet67j3.fsf@assigned-by-dhcp.cox.net>
Hi,
On Mon, 19 Feb 2007, Junio C Hamano wrote:
Show 21 quoted lines
> Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
> 
> > @@ -1336,7 +1342,17 @@ struct commit *get_revision(struct rev_info *revs)
> >  	case -1:
> >  		break;
> >  	case 0:
> > -		return NULL;
> > +		if (revs->boundary) {
> > +			struct commit_list *list = revs->commits;
> > +			while (list) {
> > +				list->item->object.flags |=
> > +					BOUNDARY_SHOW | BOUNDARY;
> > +				list = list->next;
> > +			}
> > +			revs->max_count = -1;
> > +			revs->limited = 1;
> > +		} else
> > +			return NULL;
> 
> The resetting of max_count and limited probably needs some
> commenting.
Right. Could you --amend with this, if you find it sufficient?
---
 revision.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/revision.c b/revision.c
index 87aea9c..be57191 100644
--- a/revision.c
+++ b/revision.c
@@ -1349,6 +1349,7 @@ struct commit *get_revision(struct rev_info *revs)
 					BOUNDARY_SHOW | BOUNDARY;
 				list = list->next;
 			}
+			/* all remaining commits are boundary commits */
 			revs->max_count = -1;
 			revs->limited = 1;
 		} else
Previous: Junio C Hamano
Message 3 of 3 in “rev-list --max-age, --max-count: support --boundary”
  1. rev-list --max-age, --max-count: support --boundaryJohannes Schindelin, Feb 19, 2007
  2. Junio C HamanoFeb 19, 2007
  3. Johannes SchindelinFeb 20, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.