Re: [PATCH 2/2] Be more careful when determining whether a remote was configured
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 18, 2017, 12:38 UTC
- Message-ID
- <alpine.DEB.2.20.1701181338041.3469@virtualbox>
- In-Reply-To
- <xmqqd1flcosv.fsf@gitster.mtv.corp.google.com>
Hi Junio,
On Tue, 17 Jan 2017, Junio C Hamano wrote:
> Perhaps instead of adding "is it configured?" flag that is too > broadly named and has too narrow meaning, would it make more sense > to introduce "int can_prune(struct remote *remote)" that looks at > the remote refspecs?
That ("can we prune?") is not the question we need to ask when determining whether we can rename a remote to a new name.
Ciao, Johannes