I'd make it cmd => ['ls-remotes', $URL, '--heads'] to avoid making the
interface inflexible, and perhaps add a git_binary option to specify the
binary path. (Not that I'm suggesting something like this should be
added right now; but perhaps it'll be needed at some point.)
You read my design notes about error handling at the top of
<487BD0F3.2060508@gmail.com>, and you noticed there's max_exit_code in
cmd_output? With the approach to error handling I described, open/exit
errors can cause the method to die, and stderr can be ignored.
If you're trying to implement a more sophisticated error handling
approach, be warned that you're opening a can of worms. ;) If you're
aiming for something like that, it should be kept out of Git::Repo
(which has very coherent error handling as-is), and preferably be
discussed under a separate subject, since it's way beyond the scope of
this patch.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html