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

Re: [PATCH] archive: let remote clients get reachable commits

From
Jeff King <peff@peff.net>
Date
Feb 22, 2013, 17:27 UTC
Message-ID
<20130222172710.GB17475@sigill.intra.peff.net>
In-Reply-To
<7vehg8s295.fsf@alter.siamese.dyndns.org>
On Fri, Feb 22, 2013 at 09:10:46AM -0800, Junio C Hamano wrote:
Show 19 quoted lines
> I personally think that it is OK to limit the scope to expressions
> that start from the tip of ref and expressions that start with the
> SHA-1 at the tip of ref, e.g.
> 
>     master~12:Documentation
>     v2.6.11:arch/alpha
>     5dc01c595e6c6ec9ccda	# tag v2.6.11
>     26791a8bcf0e6d33f43a:arch	# tag v2.6.12
>     26791a8bcf0~12:arch		# starting at 26791a8b and dig down
> 
> are OK, while forbidding the following:
> 
>     c39ae07f393806ccf406        # tree of tag v2.6.11
>     9ee1c939d1cb936b1f98	# commit v2.6.12^0
>     9ee1c939d1cb936b1f98:	# tree of commit v2.6.12^0
>     9ee1c939d1cb936b1f98:arch	# subtree of commit v2.6.12^0
> 
> which will make it significantly easier to implement the necessary
> validation in a robust way.

How are you proposing to verify master~12 in that example? Because during parsing, it starts with "master", and we remember that? Or because you are doing a reachability traversal on all refs after we parse?

-Peff
Previous: Junio C HamanoNext: Junio C Hamano
Message 4 of 7 in “archive: let remote clients get reachable commits”
  1. archive: let remote clients get reachable commitsSergey Segeev, Feb 21, 2013
  2. Jeff KingFeb 21, 2013
  3. Junio C HamanoFeb 22, 2013
  4. Jeff KingFeb 22, 2013
  5. Junio C HamanoFeb 22, 2013
  6. Jeff KingFeb 22, 2013
  7. Junio C HamanoFeb 22, 2013

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.