MCPcopy Create free account
hub / github.com/git/git / rollback_shallow_file

Function rollback_shallow_file

shallow.c:118–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

116}
117
118void rollback_shallow_file(struct repository *r, struct shallow_lock *lk)
119{
120 rollback_lock_file(&lk->lock);
121 reset_repository_shallow(r);
122}
123
124/*
125 * TODO: use "int" elemtype instead of "int *" when/if commit-slab

Callers 4

update_shallowFunction · 0.85
fetch_packFunction · 0.85
prune_shallowFunction · 0.85
update_shallow_refFunction · 0.85

Calls 2

rollback_lock_fileFunction · 0.85
reset_repository_shallowFunction · 0.85

Tested by

no test coverage detected