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

Re: [PATCH v2 6/8] evolve: Add support for writing metacommits

From
SZEDER Gábor <szeder.dev@gmail.com>
Date
Jan 29, 2019, 11:15 UTC
Message-ID
<20190129111554.GA13764@szeder.dev>
In-Reply-To
<20190127194128.161250-6-sxenos@google.com>
On Sun, Jan 27, 2019 at 11:41:26AM -0800, sxenos@google.com wrote:
> diff --git a/metacommit.c b/metacommit.c
Show 13 quoted lines
> +static void compute_change_name(struct commit *initial_commit, struct strbuf* result)
> +{
> +	struct strbuf default_name;
> +	struct object_id unused;
> +
> +	strbuf_init(&default_name, 0);
> +	if (initial_commit) {
> +		compute_default_change_name(initial_commit, &default_name);
> +	} else {
> +		strbuf_addstr(&default_name, "change");
> +	}
> +	strbuf_addstr(result, "refs/metas/");
> +	strbuf_addstr(result, default_name.buf);

Please use the slightly more efficient strbuf_addbuf() function instead.

Previous: sxenos@google.comNext: sxenos@google.com
Message 8 of 11 in “technical doc: add a design doc for the evolve command”
  1. 1/8 technical doc: add a design doc for the evolve commandsxenos@google.com, Jan 27, 2019
  2. 2/8 sha1-array: Implement oid_array_readonly_containssxenos@google.com, Jan 27, 2019
  3. SZEDER GáborJan 28, 2019
  4. 3/8 ref-filter: Add the metas namespace to ref-filtersxenos@google.com, Jan 27, 2019
  5. 4/8 evolve: Add support for parsing metacommitssxenos@google.com, Jan 27, 2019
  6. 5/8 evolve: Add the change-table structuresxenos@google.com, Jan 27, 2019
  7. 6/8 evolve: Add support for writing metacommitssxenos@google.com, Jan 27, 2019
  8. SZEDER GáborJan 29, 2019
  9. 7/8 evolve: Implement the git change commandsxenos@google.com, Jan 27, 2019
  10. 8/8 evolve: Add the git change list commandsxenos@google.com, Jan 27, 2019
  11. SZEDER GáborJan 29, 2019

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.