Commit 805cf6e
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 4da50de commit 805cf6e
1 file changed
+3
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3802 | 3802 | | |
3803 | 3803 | | |
3804 | 3804 | | |
3805 | | - | |
3806 | 3805 | | |
3807 | 3806 | | |
3808 | | - | |
| 3807 | + | |
3809 | 3808 | | |
3810 | 3809 | | |
3811 | 3810 | | |
3812 | 3811 | | |
3813 | 3812 | | |
3814 | | - | |
| 3813 | + | |
3815 | 3814 | | |
3816 | 3815 | | |
3817 | 3816 | | |
| |||
3827 | 3826 | | |
3828 | 3827 | | |
3829 | 3828 | | |
3830 | | - | |
| 3829 | + | |
3831 | 3830 | | |
3832 | 3831 | | |
3833 | 3832 | | |
| |||
0 commit comments