Re: [PATCH v2 1/3] for-each-ref: let upstream/push optionally report the remote name
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Oct 10, 2017, 09:35 UTC
- Message-ID
- <xmqqlgkjpcqf.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <964525df50e6d35847bcf57b0fe0949c99f0dbca.1507205895.git.johannes.schindelin@gmx.de>
Johannes Schindelin <johannes.schindelin@gmx.de> writes:
Show 11 quoted lines
> 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.