Re: [PATCH v3] perl/Git.pm: add parse_rev method

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Lea Wiemann
Date: Monday, June 2, 2008 - 6:51 am

Junio C Hamano wrote:

I'm not sure -- on the hand hand, parse_rev resembles "rev-parse" and 
might be more intuitive for that reason.

On the other hand though, the mis-named "revision" arguments get passed 
into many methods (right now get_hash, get_type, and cat_blob, but many 
more to come).  Calling them "revision" everywhere is bound to cause 
major confusion, so I'll probably have to rename the arguments anyway. 
But then, get_hash will be much more intuitive to understand than 
parse_rev since the API won't talk about "revisions" anywhere.

Also, get_hash indicates that it returns a hash and implies that it 
takes an object name, but parse_rev indicates neither of those.  Since 
Git.pm doesn't mimic Git's command-line API anyway, I'd rather have 
clear method names.

-- Lea
--
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] perl/Git.pm: add rev_parse method, Lea Wiemann, (Thu May 29, 9:43 pm)
Re: [PATCH] perl/Git.pm: add rev_parse method, Lea Wiemann, (Fri May 30, 12:03 am)
Re: [PATCH] perl/Git.pm: add rev_parse method, Petr Baudis, (Fri May 30, 2:50 am)
Re: [PATCH] perl/Git.pm: add rev_parse method, Petr Baudis, (Fri May 30, 2:59 am)
[PATCH] perl/Git.pm: add parse_rev method, Lea Wiemann, (Fri May 30, 1:27 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Petr Baudis, (Fri May 30, 2:05 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Junio C Hamano, (Fri May 30, 2:25 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Randal L. Schwartz, (Fri May 30, 2:44 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Petr Baudis, (Fri May 30, 2:49 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Lea Wiemann, (Fri May 30, 2:59 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Randal L. Schwartz, (Fri May 30, 3:03 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Lea Wiemann, (Fri May 30, 3:05 pm)
Re: [PATCH] perl/Git.pm: add parse_rev method, Junio C Hamano, (Fri May 30, 3:19 pm)
Re: Merging strategy for extending Git.pm, Junio C Hamano, (Fri May 30, 4:20 pm)
Re: Merging strategy for extending Git.pm (was: [PATCH] pe ..., Johannes Schindelin, (Sat May 31, 4:38 am)
Re: [PATCH] perl/Git.pm: add parse_rev method, Johannes Schindelin, (Sat May 31, 4:50 am)
Support for old Perl versions, Petr Baudis, (Sat May 31, 5:17 am)
Re: Support for old Perl versions, Johannes Schindelin, (Sat May 31, 5:32 am)
Re: Merging strategy for extending Git.pm, Lea Wiemann, (Sat May 31, 5:42 am)
Re: Merging strategy for extending Git.pm, Johannes Schindelin, (Sat May 31, 5:52 am)
[PATCH v2] perl/Git.pm: add parse_rev method, Lea Wiemann, (Sat May 31, 6:52 am)
[PATCH v3] perl/Git.pm: add parse_rev method, Lea Wiemann, (Sat May 31, 8:17 pm)
[PATCH v3] perl/Git.pm: add parse_rev method, Lea Wiemann, (Sat May 31, 8:17 pm)
Re: [PATCH v3] perl/Git.pm: add parse_rev method, Lea Wiemann, (Sun Jun 1, 10:38 am)
Re: [PATCH v3] perl/Git.pm: add parse_rev method, Miklos Vajna, (Sun Jun 1, 2:54 pm)
Re: [PATCH v3] perl/Git.pm: add parse_rev method, Lea Wiemann, (Sun Jun 1, 3:51 pm)
[PATCH v4] perl/Git.pm: add get_hash method, Lea Wiemann, (Sun Jun 1, 4:09 pm)
[PATCH v4] perl/Git.pm: add get_hash method, Lea Wiemann, (Sun Jun 1, 4:24 pm)
Re: [PATCH v3] perl/Git.pm: add parse_rev method, Junio C Hamano, (Sun Jun 1, 9:59 pm)
Re: [PATCH v3] perl/Git.pm: add parse_rev method, Lea Wiemann, (Mon Jun 2, 6:51 am)