From: Junio C Hamano Date: Tue, 10 Oct 2017 09:35:04 GMT Subject: Re: [PATCH v2 1/3] for-each-ref: let upstream/push optionally report the remote name Message-ID: In-Reply-To: <964525df50e6d35847bcf57b0fe0949c99f0dbca.1507205895.git.johannes.schindelin@gmx.de> Johannes Schindelin writes: > There are times when e.g. scripts want to know not only the name of the > upstream branch on the remote repository, but also the name of the > remote. > > This patch offers the new suffix :remotename for the upstream and for > the push atoms, allowing to show exactly that. Example: > ... > $ git for-each-ref \ > --format='%(upstream) %(upstream:remote) %(push:remote)' \ > refs/heads/master > refs/remotes/origin/master origin hello-world While doing the regular re-review of the topics in flight, I noticed that there are two references to :remote here that should be :remotename, so I tweaked them locally and pushed the result out as part of 'pu'. Thanks.