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