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

Re: [PATCH 2/2] combine-diff: speed it up, by using multiparent diff tree-walker directly

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 13, 2014, 19:55 UTC
Message-ID
<xmqq7g8ylrdv.fsf@gitster.dls.corp.google.com>
In-Reply-To
<f74c494d4afd0f7428288ce1099a91c9d2ae2125.1392299516.git.kirr@mns.spb.ru>
Kirill Smelkov <kirr@mns.spb.ru> writes:
Show 15 quoted lines
> +	if (need_generic_pathscan) {
> +		/* NOTE generic case also handles --stat, as it computes
> +		 * diff(sha1,parent_i) for all i to do the job, specifically
> +		 * for parent0.
> +		 */
> +		paths = find_paths_generic(sha1, parents, &diffopts);
> +	}
> +	else {
> +		paths = find_paths_multitree(sha1, parents, &diffopts);
> +
> +		/* show stat against the first parent even
> +		 * when doing combined diff.
> +		 */
> +		int stat_opt = (opt->output_format &
> +				(DIFF_FORMAT_NUMSTAT|DIFF_FORMAT_DIFFSTAT));
/*
 * We see decl-after-stmt here.
 * Also please have slash-asterisk and asterisk-slash
 * at the beginning and the end of a multi-line comment
 * block on their own line.
 */
Previous: Kirill SmelkovNext: Kirill Smelkov
Message 9 of 10 in “Multiparent diff tree-walker + combine-diff speedup”
  1. 0/2 Multiparent diff tree-walker + combine-diff speedupKirill Smelkov, Feb 13, 2014
  2. 1/2 tree-diff: rework diff_tree() to generate diffs for multiparent cases as wellKirill Smelkov, Feb 13, 2014
  3. Junio C HamanoFeb 13, 2014
  4. Kirill SmelkovFeb 14, 2014
  5. Junio C HamanoFeb 14, 2014
  6. Kirill SmelkovFeb 16, 2014
  7. Junio C HamanoFeb 18, 2014
  8. 2/2 combine-diff: speed it up, by using multiparent diff tree-walker directlyKirill Smelkov, Feb 13, 2014
  9. Junio C HamanoFeb 13, 2014
  10. Kirill SmelkovFeb 14, 2014

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.