Commit cbf50f9
ref_transaction_commit(): remove the local flags variable
Instead, work directly with update->flags. This has the advantage that
the REF_DELETING bit, set in the first loop, can be read in the second
loop instead of having to be recomputed. Plus, it was potentially
confusing having both update->flags and flags, which sometimes had
different values.
Signed-off-by: Michael Haggerty <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 61e51e0 commit cbf50f9
1 file changed
+9
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3763 | 3763 | | |
3764 | 3764 | | |
3765 | 3765 | | |
3766 | | - | |
3767 | 3766 | | |
3768 | | - | |
3769 | | - | |
| 3767 | + | |
| 3768 | + | |
| 3769 | + | |
3770 | 3770 | | |
3771 | 3771 | | |
3772 | 3772 | | |
3773 | 3773 | | |
3774 | 3774 | | |
3775 | | - | |
| 3775 | + | |
3776 | 3776 | | |
3777 | 3777 | | |
3778 | 3778 | | |
| |||
3787 | 3787 | | |
3788 | 3788 | | |
3789 | 3789 | | |
3790 | | - | |
3791 | 3790 | | |
3792 | | - | |
| 3791 | + | |
| 3792 | + | |
3793 | 3793 | | |
3794 | 3794 | | |
3795 | 3795 | | |
| |||
3822 | 3822 | | |
3823 | 3823 | | |
3824 | 3824 | | |
3825 | | - | |
3826 | 3825 | | |
3827 | | - | |
| 3826 | + | |
| 3827 | + | |
3828 | 3828 | | |
3829 | 3829 | | |
3830 | 3830 | | |
3831 | 3831 | | |
3832 | 3832 | | |
3833 | | - | |
| 3833 | + | |
3834 | 3834 | | |
3835 | 3835 | | |
3836 | 3836 | | |
| |||
0 commit comments