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

Re: [PATCH 4/8] Allow fetch to modify refs

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Sep 4, 2009, 10:46 UTC
Message-ID
<alpine.DEB.1.00.0909041243420.4605@intel-tinevez-2-302>
In-Reply-To
<alpine.LNX.2.00.0909032213260.28290@iabervon.org>
Hi,
On Thu, 3 Sep 2009, Daniel Barkalow wrote:
> +	/**
> +	 * Fetch the objects for the given refs. Note that this gets
> +	 * an array, and should ignore the list structure.

This is not clear at all. You should rather say "[...] and should not look at, or set, the 'next' member of the refs".

> +	 *
> +	 * If the transport did not get hashes for refs in
> +	 * get_refs_list(), it should set the old_sha1 fields in the
> +	 * provided refs now.
Not the "new_sha1"?
Show 5 quoted lines
> +	 **/
> +	int (*fetch)(struct transport *transport, int refs_nr, struct ref **refs);
> +
> [...]
> +	/** get_refs_list(), fetch(), and push_refs() can keep
The "/**" wants to have a line to itself.
Show 6 quoted lines
> +	 * resources (such as a connection) reserved for futher
> +	 * use. disconnect() releases these resources.
> +	 **/
>  	int (*disconnect)(struct transport *connection);
>  	char *pack_lockfile;
>  	signed verbose : 2;

Ciao, Dscho

Previous: Daniel BarkalowNext: Daniel Barkalow
Message 2 of 3 in “Allow fetch to modify refs”
  1. 4/8 Allow fetch to modify refsDaniel Barkalow, Sep 4, 2009
  2. Johannes SchindelinSep 4, 2009
  3. Daniel BarkalowSep 4, 2009

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.