line |
true |
false |
branch |
35
|
0 |
2200 |
GIT_ERROR_CHECK_ALLOC(entries); |
38
|
0 |
2200 |
if ((error = git_strmap_new(&entries->map)) < 0) |
52
|
0 |
14124 |
GIT_ERROR_CHECK_ALLOC(duplicated); |
55
|
0 |
14124 |
GIT_ERROR_CHECK_ALLOC(duplicated->name); |
57
|
14124 |
0 |
if (entry->value) { |
59
|
0 |
14124 |
GIT_ERROR_CHECK_ALLOC(duplicated->value); |
64
|
0 |
14124 |
if ((error = git_config_entries_append(entries, duplicated)) < 0) |
68
|
0 |
14124 |
if (error && duplicated) { |
|
0 |
0 |
if (error && duplicated) { |
82
|
0 |
1070 |
if ((error = git_config_entries_new(&result)) < 0) |
85
|
7494 |
1070 |
for (head = entries->list; head; head = head->next) |
86
|
0 |
7494 |
if ((git_config_entries_dup_entry(result, head->entry)) < 0) |
109
|
15340 |
2200 |
while (list != NULL) { |
111
|
14483 |
857 |
if (list->first) |
124
|
9334 |
1138 |
if (entries) |
125
|
2200 |
7134 |
GIT_REFCOUNT_DEC(entries, config_entries_free); |
|
2200 |
0 |
GIT_REFCOUNT_DEC(entries, config_entries_free); |
133
|
0 |
15340 |
GIT_ERROR_CHECK_ALLOC(head); |
142
|
857 |
14483 |
if ((existing = git_strmap_get(entries->map, entry->name)) != NULL) { |
149
|
14210 |
1130 |
if (entries->list) |
155
|
0 |
15340 |
if (git_strmap_set(entries->map, entry->name, head) < 0) |
164
|
4160 |
855 |
if ((entry = git_strmap_get(entries->map, key)) == NULL) |
174
|
46 |
9 |
if ((entry = git_strmap_get(entries->map, key)) == NULL) |
177
|
0 |
9 |
if (!entry->first) { |
182
|
0 |
9 |
if (entry->entry->include_depth) { |
205
|
1069 |
7484 |
if (!it->head) |
219
|
0 |
1070 |
GIT_ERROR_CHECK_ALLOC(it); |