From: Stefan Sperling Subject: Re: add 'got send' command To: Christian Weisgerber Cc: gameoftrees@openbsd.org Date: Thu, 26 Aug 2021 15:54:10 +0200 On Thu, Aug 26, 2021 at 03:14:17PM +0200, Christian Weisgerber wrote: > Stefan Sperling: > > > This patch implements 'got send', which uploads changes to a Git server. > > Git supports separate fetch and push URLs (remote.origin.pushurl) > and that feature is in use: > > $ git remote -v > freebsd ssh://anongit@git.freebsd.org/ports.git (fetch) > freebsd ssh://git@gitrepo.freebsd.org/ports.git (push) > > I guess we can just configure separate remotes in got.conf for this > purpose, but I'd like to tentatively raise a feature request. What config syntax would you like to use? Should we add options which carry a fetch- or send- prefix, for any configuration variables where this makes sense? If not specified the non-prefixed version would be used as a fallback. remote freebsd { fetch-server git.freebsd.org send-server gitrepo.freebsd.org send-repository ports.git fetch-repository ports.git # above two lines do the same as: repository ports.git fetch-protocol git send-protocol ssh } We already have fetch-all-branches so send-all-branches would fit well into this scheme.