Re: Cleaning up git user-interface warts
From: Junio C Hamano <hidden>
Date: 2016-08-11 20:34:41
Johannes Schindelin [off-list ref] writes:
quoted
5. Adding something like git-fetch --all to allow it to pick up all new branchesIIRC this idea was rejected, but I would find it useful. Especially with what Han-Wen said: you can store the branches you fetch with "git fetch --all <nick>" under .git/refs/remotes/<nick>/<branchname>.
With separate-remote layout, this can be done without risk of tracking refname clashing with local refname, which was the primary reason for an earlier reluctance. While separate-remote layout also solves Carl's "do not want to track tracking branches remote has" problem, local branch namespace can have both for-others (not necessarily "public" but could be "for colleagues") and throwaway branches, so --all is probably not the right thing to do in most cases. But I am Ok with the approach of seeing how well it works out in practice by doing the simplest "--all" and giving options to restrict it later.