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

Remote "push" syntax

From
Daniel Barkalow <barkalow@iabervon.org>
Date
Apr 22, 2007, 20:49 UTC
Message-ID
<Pine.LNX.4.64.0704221611040.27922@iabervon.org>

I'm splitting the code for reading configuration of remotes out of builtin-push, for eventual use by builtin versions of additional commands, as well as to make git-push hopefully a bit nicer to use, so I'm wodnering about details of the behavior I should match.

Is it actually valid to have wildcards in the "push" configuration for a remote? git-push seems to skip them when looking at configuration files, and the documentation only talks about them being valid on the command line. Is there some reason to filter them out of the configurations, rather than just treating them as (unlikely) literals?

git-push currently always defaults to "origin", even if there is a different remote configured for the current branch. It seems to me like using the branch's remote would be better if there is one.

Do we care about the order of precedence of ways of configurating remotes? The current order is remotes > config > branches; it would be convenient to use config > remotes > branches, particularly because I'd like to read the config file first to find out the branch configuration.

	-Daniel
*This .sig left intentionally blank*
Message 1 of 1 in “Remote "push" syntax”
  1. Daniel BarkalowApr 22, 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.