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

Re: [PATCH 1/2] sha1_object_info_extended: provide delta base sha1s

From
Junio C Hamano <gitster@pobox.com>
Date
Dec 26, 2013, 19:54 UTC
Message-ID
<xmqqa9fncrrm.fsf@gitster.dls.corp.google.com>
In-Reply-To
<20131221142419.GA29679@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
Show 20 quoted lines
> @@ -1824,6 +1856,22 @@ static int packed_object_info(struct packed_git *p, off_t obj_offset,
>  		}
>  	}
>  
> +	if (oi->delta_base_sha1) {
> +		if (type == OBJ_OFS_DELTA || type == OBJ_REF_DELTA) {
> +			const unsigned char *base;
> +
> +			base = get_delta_base_sha1(p, &w_curs, curpos,
> +						   type, obj_offset);
> +			if (!base) {
> +				type = OBJ_BAD;
> +				goto out;
> +			}
> +
> +			hashcpy(oi->delta_base_sha1, base);
> +		} else
> +			hashclr(oi->delta_base_sha1);
> +	}
> +
Makes sense.
Previous: Jeff KingNext: Jeff King
Message 3 of 5 in “cat-file --batch-check='%(deltabase)'”
  1. 0/2 cat-file --batch-check='%(deltabase)'Jeff King, Dec 21, 2013
  2. 1/2 sha1_object_info_extended: provide delta base sha1sJeff King, Dec 21, 2013
  3. Junio C HamanoDec 26, 2013
  4. 2/2 cat-file: provide %(deltabase) batch formatJeff King, Dec 21, 2013
  5. Jonathan NiederDec 26, 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.