From: Harald Nordgren Date: Fri, 30 Oct 2026 10:14:09 GMT Subject: Re: [PATCH v10 1/5] fetch: add remote..refmap Message-ID: In-Reply-To: On Fri, Oct 30, 2026 at 12:21 AM Junio C Hamano wrote: > > Ben Knoble writes: > > > Yes, I would love to add pushRefmap atop later! It would > > ease my working with notes, I think. > > > Yes, I would love to add pushRefmap atop later! It would > > ease my working with notes, I think. > > Tell us more when you are off mobile ;-). > > I do not think I planned to add '--refmap' support on the push side, > even from the command line, but I can imagine there would be > reasonable workflows that benefit from having one. Not sure if it's related to this specific conversation, but I realized that @{push} is not being resolved here, so I plan on adding a small fix in a v13: ``` --- a/remote.c +++ b/remote.c @@ -2018,6 +2018,8 @@ static char *tracking_for_push_dest(struct repository *repo, remote = repo_remote_for_push_tracking(repo, remote); ret = apply_refspecs(&remote->fetch, refname); + if (!ret) + ret = apply_refspecs(&remote->refmap, refname); if (!ret) return error_buf(err, _("push destination '%s' on remote '%s' has no local tracking branch"), ``` Harald