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

Re: Update local tracking refs when pushing- no way to disable

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Jul 6, 2007, 01:17 UTC
Message-ID
<Pine.LNX.4.64.0707060201200.9789@racer.site>
In-Reply-To
<449c10960707051722q6650ec7dq6012695acdfba4af@mail.gmail.com>
Hi,
[on this list, it is considered polite to not cull the Cc list anyway]
On Thu, 5 Jul 2007, Dan McGee wrote:
> In this commit:
> b516968ff62ec153e008d033c153affd7ba9ddc6

You might be interested to look only at the changes to builtin-push.c. I have a hunch that you just need to disable setting the remote if "remote.<name>.skipDefaultUpdate" is set.

Of course, for that to work, you would also need to add a member variable to struct remote in remote.h, and handle it at the end of handle_config() in remote.c.

Then just use remote->skip_default_update in builtin-push.c, to guard around lines 90--93.

As for submitting, please read Documentation/SubmittingPatches first, it is not really long, and most of it is obvious.

Hth, Dscho

Previous: Dan McGeeNext: Junio C Hamano
Message 2 of 12 in “Update local tracking refs when pushing- no way to disable”
  1. Dan McGeeJul 6, 2007
  2. Johannes SchindelinJul 6, 2007
  3. Junio C HamanoJul 6, 2007
  4. Daniel BarkalowJul 6, 2007
  5. Marco CostalbaJul 6, 2007
  6. Shawn O. PearceJul 6, 2007
  7. Johannes SchindelinJul 6, 2007
  8. Daniel BarkalowJul 6, 2007
  9. Johannes SchindelinJul 6, 2007
  10. Daniel BarkalowJul 6, 2007
  11. Johannes SchindelinJul 6, 2007
  12. Dan McGeeJul 6, 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.