Commit a5e2499
verify_lock(): return 0/-1 rather than struct ref_lock *
Its return value wasn't conveying any extra information, but it made
the reader wonder whether the ref_lock that it returned might be
different than the one that was passed to it. So change the function
to the traditional "return 0 on success or a negative value on error".
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent fae46aa commit a5e2499
1 file changed
Lines changed: 14 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2218 | 2218 | | |
2219 | 2219 | | |
2220 | 2220 | | |
2221 | | - | |
2222 | | - | |
2223 | | - | |
| 2221 | + | |
| 2222 | + | |
| 2223 | + | |
| 2224 | + | |
| 2225 | + | |
| 2226 | + | |
| 2227 | + | |
| 2228 | + | |
2224 | 2229 | | |
2225 | 2230 | | |
2226 | 2231 | | |
| |||
2229 | 2234 | | |
2230 | 2235 | | |
2231 | 2236 | | |
2232 | | - | |
| 2237 | + | |
2233 | 2238 | | |
2234 | 2239 | | |
2235 | 2240 | | |
2236 | 2241 | | |
2237 | 2242 | | |
2238 | 2243 | | |
2239 | | - | |
| 2244 | + | |
2240 | 2245 | | |
2241 | | - | |
| 2246 | + | |
2242 | 2247 | | |
2243 | 2248 | | |
2244 | 2249 | | |
| |||
2466 | 2471 | | |
2467 | 2472 | | |
2468 | 2473 | | |
2469 | | - | |
| 2474 | + | |
| 2475 | + | |
| 2476 | + | |
2470 | 2477 | | |
2471 | 2478 | | |
2472 | 2479 | | |
| |||
0 commit comments