Commit 49aebcf
packed_refs_unlock(), packed_refs_is_locked(): new functions
Add two new public functions, `packed_refs_unlock()` and
`packed_refs_is_locked()`, with which callers can manage and query the
`packed-refs` lock externally.
Call `packed_refs_unlock()` from `commit_packed_refs()` and
`rollback_packed_refs()`.
Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent c8bed83 commit 49aebcf
2 files changed
+28
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
| 566 | + | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
| 582 | + | |
| 583 | + | |
| 584 | + | |
| 585 | + | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
566 | 589 | | |
567 | 590 | | |
568 | 591 | | |
| |||
649 | 672 | | |
650 | 673 | | |
651 | 674 | | |
652 | | - | |
653 | | - | |
| 675 | + | |
654 | 676 | | |
655 | 677 | | |
656 | 678 | | |
| |||
661 | 683 | | |
662 | 684 | | |
663 | 685 | | |
664 | | - | |
665 | | - | |
666 | 686 | | |
667 | 687 | | |
668 | 688 | | |
669 | 689 | | |
670 | | - | |
671 | | - | |
| 690 | + | |
672 | 691 | | |
673 | 692 | | |
674 | 693 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
14 | 17 | | |
15 | 18 | | |
16 | 19 | | |
| |||
0 commit comments