MCPcopy Index your code
hub / github.com/git/git / commit_shallow_file

Function commit_shallow_file

shallow.c:104–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102}
103
104int commit_shallow_file(struct repository *r, struct shallow_lock *lk)
105{
106 int res = commit_lock_file(&lk->lock);
107 reset_repository_shallow(r);
108
109 /*
110 * Update in-memory data structures with the new shallow information,
111 * including unparsing all commits that now have grafts.
112 */
113 is_repository_shallow(r);
114
115 return res;
116}
117
118void rollback_shallow_file(struct repository *r, struct shallow_lock *lk)
119{

Callers 3

update_shallowFunction · 0.85
prune_shallowFunction · 0.85
update_shallow_refFunction · 0.85

Calls 3

commit_lock_fileFunction · 0.85
reset_repository_shallowFunction · 0.85
is_repository_shallowFunction · 0.85

Tested by

no test coverage detected