| 102 | } |
| 103 | |
| 104 | int 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 | |
| 118 | void rollback_shallow_file(struct repository *r, struct shallow_lock *lk) |
| 119 | { |
no test coverage detected