Re: [PATCH] gitweb: Use the config file to set repository owner's name.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Bruno Cesar Ribas <ribas@...>
Cc: <git@...>, Junio C Hamano <gitster@...>, Git Managment for C3SL <git@...>
Date: Friday, February 8, 2008 - 11:33 am

I have joined the two emails to reply only once.

On Fri, 8 Feb 2008, Bruno Cesar Ribas wrote:

Another comment: why did you change from checking of "!defined $owner"
to checking "!$owner"? git_get_project_config('owner') returns undef
if gitweb.owner is not defined. With checking for defined we can avoid
false positives of owner being "0" (in practice I think this does not
matter) or "" (this could happen if somebody doesn't want for project
to have owner shown).


The idea was for empty lines to separate blocks of code: variables 
declaration, initialization, finding an owner, and return value.
So I think that empty lines are not needed here. There were no empty 
lines between check for owner in the structure populated by 
git_get_project_list_from_file() and checking filesystem stat for 
project directory owner.

By the way, the git_get_project_list_from_file() interface is a bit 
strange...


No. I think using "if (!defined $foo) { maybe define foo }..."
sequence is a good flow.


And with signoff corrected, I assume?

Please try to check if the code works with and without gitweb.owner set 
before sending new version of the patch...
-- 
Jakub Narebski
Poland
-
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:
Adding gitweb.owner, last shot, Bruno Ribas, (Fri Feb 8, 12:41 am)
Re: Adding gitweb.owner, last shot, Jakub Narebski, (Fri Feb 8, 6:34 am)
Re: Adding gitweb.owner, last shot, Bruno Cesar Ribas, (Fri Feb 8, 9:51 am)
Re: Adding gitweb.owner, last shot, Junio C Hamano, (Fri Feb 8, 3:38 am)
Re: Adding gitweb.owner, last shot, Bruno Cesar Ribas, (Fri Feb 8, 9:49 am)
Re: [PATCH] gitweb: Use the config file to set repository ow..., Bruno Cesar Ribas, (Fri Feb 8, 10:30 am)
Re: [PATCH] gitweb: Use the config file to set repository ow..., Jakub Narebski, (Fri Feb 8, 11:33 am)
Re: [PATCH] gitweb: Use the config file to set repository ow..., Bruno Cesar Ribas, (Fri Feb 8, 12:07 pm)