line |
true |
false |
branch |
24
|
35 |
0 |
assert(out && repo); |
|
0 |
35 |
assert(out && repo); |
27
|
0 |
35 |
GIT_ERROR_CHECK_ALLOC(db); |
41
|
35 |
0 |
assert(out && repo); |
|
0 |
35 |
assert(out && repo); |
45
|
0 |
35 |
if (git_refdb_new(&db, repo) < 0) |
49
|
0 |
35 |
if (git_refdb_backend_fs(&dir, repo) < 0) { |
63
|
32 |
0 |
if (db->backend) |
69
|
0 |
0 |
GIT_ERROR_CHECK_VERSION(backend, GIT_REFDB_BACKEND_VERSION, "git_refdb_backend"); |
71
|
0 |
0 |
if (!backend->exists || !backend->lookup || !backend->iterator || |
|
0 |
0 |
if (!backend->exists || !backend->lookup || !backend->iterator || |
|
0 |
0 |
if (!backend->exists || !backend->lookup || !backend->iterator || |
|
0 |
0 |
if (!backend->exists || !backend->lookup || !backend->iterator || |
72
|
0 |
0 |
!backend->write || !backend->rename || !backend->del || |
|
0 |
0 |
!backend->write || !backend->rename || !backend->del || |
|
0 |
0 |
!backend->write || !backend->rename || !backend->del || |
73
|
0 |
0 |
!backend->has_log || !backend->ensure_log || !backend->free || |
|
0 |
0 |
!backend->has_log || !backend->ensure_log || !backend->free || |
|
0 |
0 |
!backend->has_log || !backend->ensure_log || !backend->free || |
74
|
0 |
0 |
!backend->reflog_read || !backend->reflog_write || |
|
0 |
0 |
!backend->reflog_read || !backend->reflog_write || |
75
|
0 |
0 |
!backend->reflog_rename || !backend->reflog_delete || |
|
0 |
0 |
!backend->reflog_rename || !backend->reflog_delete || |
76
|
0 |
0 |
(backend->lock && !backend->unlock)) { |
89
|
0 |
0 |
assert(db); |
91
|
0 |
0 |
if (db->backend->compress) |
106
|
0 |
38 |
if (db == NULL) |
109
|
32 |
6 |
GIT_REFCOUNT_DEC(db, git_refdb__free); |
|
32 |
0 |
GIT_REFCOUNT_DEC(db, git_refdb__free); |
114
|
0 |
0 |
assert(exists && refdb && refdb->backend); |
|
0 |
0 |
assert(exists && refdb && refdb->backend); |
|
0 |
0 |
assert(exists && refdb && refdb->backend); |
124
|
1230 |
0 |
assert(db && db->backend && out && ref_name); |
|
1230 |
0 |
assert(db && db->backend && out && ref_name); |
|
1230 |
0 |
assert(db && db->backend && out && ref_name); |
|
0 |
1230 |
assert(db && db->backend && out && ref_name); |
127
|
155 |
1075 |
if (error < 0) |
141
|
32 |
0 |
if (!db->backend || !db->backend->iterator) { |
|
0 |
32 |
if (!db->backend || !db->backend->iterator) { |
146
|
0 |
32 |
if ((error = db->backend->iterator(out, db->backend, glob)) < 0) |
159
|
8 |
11 |
if ((error = iter->next(out, iter)) < 0) |
175
|
0 |
32 |
GIT_REFCOUNT_DEC(iter->db, git_refdb__free); |
|
0 |
0 |
GIT_REFCOUNT_DEC(iter->db, git_refdb__free); |
181
|
99 |
0 |
assert(db && db->backend); |
|
0 |
99 |
assert(db && db->backend); |
200
|
1 |
0 |
assert(db && db->backend); |
|
0 |
1 |
assert(db && db->backend); |
202
|
0 |
1 |
if (error < 0) |
205
|
1 |
0 |
if (out) { |
215
|
6 |
0 |
assert(db && db->backend); |
|
0 |
6 |
assert(db && db->backend); |
223
|
20 |
0 |
assert(db && db->backend); |
|
0 |
20 |
assert(db && db->backend); |
225
|
0 |
20 |
if ((error = db->backend->reflog_read(out, db->backend, name)) < 0) |
236
|
0 |
0 |
assert(db && refname); |
|
0 |
0 |
assert(db && refname); |
243
|
6 |
0 |
assert(db && refname); |
|
0 |
6 |
assert(db && refname); |
250
|
0 |
35 |
GIT_INIT_STRUCTURE_FROM_TEMPLATE( |
257
|
3 |
0 |
assert(payload && db && refname); |
|
3 |
0 |
assert(payload && db && refname); |
|
0 |
3 |
assert(payload && db && refname); |
259
|
0 |
3 |
if (!db->backend->lock) { |
269
|
0 |
3 |
assert(db); |