From: Junio C Hamano Date: Thu, 08 Apr 2010 05:35:40 GMT Subject: Re: [PATCH] ls-remote: default to 'origin' when no remote specified Message-ID: <7v8w8y8q1f.fsf@alter.siamese.dyndns.org> In-Reply-To: <20100408044552.GA30473@coredump.intra.peff.net> Jeff King writes: > I don't really see a problem with this. The current behavior produces an > error, so it is not as if we are breaking somebody's workflow, and the > only sensible default is the same one used by the other commands. I'd agree only if "the other commands" default to the same remote; otherwise as a plumbing, ls-remote should insist that the user be more explicit. The only odd-man out that would worry me is "git pull", as I expect everybody written in C would just use remote_get(NULL).