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

Re: [PATCH] Push code for transport library

From
Shawn O. Pearce <spearce@spearce.org>
Date
Jul 8, 2007, 21:14 UTC
Message-ID
<20070708211418.GA4436@spearce.org>
In-Reply-To
<Pine.LNX.4.64.0707081608100.6977@iabervon.org>
Daniel Barkalow <barkalow@iabervon.org> wrote:
> This moves the code to call push backends into a library that can be
> extended to make matching fetch and push decisions based on the URL it
> gets, and which could be changed to have built-in implementations
> instead of calling external programs.
...
> +static const struct transport_ops git_transport = {
> +	.set_option = set_git_option,
> +	.push = git_transport_push
> +};
Interesting.

But can we please avoid that struct initialization syntax? I build Git with a C compiler that doesn't understand it. No, I can't upgrade the compiler. In the past we've largely been able to avoid using this feature of C99. If you look at the current codebase this would again become the first usage of the feature, as I have long since eliminated all of them.

-- 
Shawn.
Previous: Johannes Schindelin
Message 3 of 3 in “Push code for transport library”
  1. Push code for transport libraryDaniel Barkalow, Jul 8, 2007
  2. Johannes SchindelinJul 8, 2007
  3. Shawn O. PearceJul 8, 2007

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.