Commit 14b289b
gitweb: Refactor checking if part of project info need filling
Extract the check if given keys (given parts) of project info needs to
be filled into project_info_needs_filling() subroutine. It is for now
a thin wrapper around "!exists $project_info->{$key}".
Note that !defined was replaced by more correct !exists.
While at it uniquify treating of all project info, adding checks for
'age' field before running git_get_last_activity(), and also checking
for all keys filled in code protected by conditional, and not only
one.
The code now looks like this
foreach my $project (@$project_list) {
if (given keys need to be filled) {
fill given keys
}
...
}
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent b0d66b5 commit 14b289b
1 file changed
Lines changed: 26 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5188 | 5188 | | |
5189 | 5189 | | |
5190 | 5190 | | |
| 5191 | + | |
| 5192 | + | |
| 5193 | + | |
| 5194 | + | |
| 5195 | + | |
| 5196 | + | |
| 5197 | + | |
| 5198 | + | |
| 5199 | + | |
| 5200 | + | |
| 5201 | + | |
| 5202 | + | |
| 5203 | + | |
| 5204 | + | |
5191 | 5205 | | |
5192 | 5206 | | |
5193 | 5207 | | |
| |||
5199 | 5213 | | |
5200 | 5214 | | |
5201 | 5215 | | |
5202 | | - | |
5203 | | - | |
5204 | | - | |
| 5216 | + | |
| 5217 | + | |
| 5218 | + | |
| 5219 | + | |
| 5220 | + | |
| 5221 | + | |
5205 | 5222 | | |
5206 | | - | |
5207 | | - | |
| 5223 | + | |
5208 | 5224 | | |
5209 | 5225 | | |
5210 | 5226 | | |
5211 | 5227 | | |
5212 | 5228 | | |
5213 | | - | |
| 5229 | + | |
5214 | 5230 | | |
5215 | 5231 | | |
5216 | | - | |
| 5232 | + | |
| 5233 | + | |
5217 | 5234 | | |
5218 | 5235 | | |
5219 | | - | |
| 5236 | + | |
| 5237 | + | |
5220 | 5238 | | |
5221 | 5239 | | |
5222 | 5240 | | |
| |||
0 commit comments