Commit b531394
refs.c: rework ref_locks by abstracting from underlying struct lock_file
Instead of calling close_lock_file() and commit_lock_file() directly,
which take a struct lock_file argument, add two new functions:
close_ref() and commit_ref(), which handle calling the previous
lock_file functions and modifying the ref_lock structure.
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 4ed7cd3 commit b531394
1 file changed
+18
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1018 | 1018 | | |
1019 | 1019 | | |
1020 | 1020 | | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + | |
| 1024 | + | |
| 1025 | + | |
| 1026 | + | |
| 1027 | + | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
| 1031 | + | |
| 1032 | + | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1021 | 1037 | | |
1022 | 1038 | | |
1023 | 1039 | | |
| |||
1147 | 1163 | | |
1148 | 1164 | | |
1149 | 1165 | | |
1150 | | - | |
| 1166 | + | |
1151 | 1167 | | |
1152 | 1168 | | |
1153 | 1169 | | |
| |||
1180 | 1196 | | |
1181 | 1197 | | |
1182 | 1198 | | |
1183 | | - | |
| 1199 | + | |
1184 | 1200 | | |
1185 | 1201 | | |
1186 | 1202 | | |
1187 | 1203 | | |
1188 | | - | |
1189 | 1204 | | |
1190 | 1205 | | |
1191 | 1206 | | |
| |||
0 commit comments