Re: [PATCH 2/3] add new Git::Repo API

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lea Wiemann
Date: Monday, July 14, 2008 - 5:11 pm

Jakub Narebski wrote:

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
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Thu Jul 10, 6:06 pm)
[PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Thu Jul 10, 6:11 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Johannes Schindelin, (Thu Jul 10, 6:21 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Jakub Narebski, (Fri Jul 11, 2:33 am)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Fri Jul 11, 7:07 am)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Abhijit Menon-Sen, (Fri Jul 11, 9:27 am)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Jakub Narebski, (Sat Jul 12, 8:08 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Sun Jul 13, 4:28 pm)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Sun Jul 13, 6:40 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Sun Jul 13, 7:29 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Mon Jul 14, 3:19 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Mon Jul 14, 4:41 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Mon Jul 14, 5:11 pm)
Re: [PATCH 3/3] gitweb: use new Git::Repo API, and add opt ..., Johannes Schindelin, (Mon Jul 14, 6:28 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Wed Jul 16, 11:21 am)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Wed Jul 16, 1:32 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Thu Jul 17, 4:49 pm)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Fri Jul 18, 6:40 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Fri Jul 18, 8:35 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 9:48 am)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Fri Jul 18, 9:51 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 9:54 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Fri Jul 18, 10:05 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 10:17 am)
Re: [PATCH 2/3] add new Git::Repo API, Lea Wiemann, (Fri Jul 18, 11:09 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Fri Jul 18, 11:19 am)
Re: [PATCH 2/3] add new Git::Repo API, Johannes Schindelin, (Fri Jul 18, 11:23 am)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Fri Jul 18, 5:03 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Fri Jul 18, 10:35 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Sat Jul 19, 12:07 pm)
Re: Statictics on Git.pm usage in git commands (was: [PATC ..., Johannes Schindelin, (Sun Jul 20, 3:38 am)
Re: Statictics on Git.pm usage in git commands (was: [PATC ..., Johannes Schindelin, (Sun Jul 20, 5:33 am)
Re: Statictics on Git.pm usage in git commands (was: [PATC ..., Johannes Schindelin, (Sun Jul 20, 6:21 am)
Re: [PATCH 2/3] add new Git::Repo API, Petr Baudis, (Sun Jul 20, 2:36 pm)
Re: [PATCH 2/3] add new Git::Repo API, Jakub Narebski, (Sun Jul 20, 2:50 pm)
Re: [PATCH 0/3] Git::Repo API and gitweb caching, Lea Wiemann, (Mon Aug 18, 12:34 pm)