Commit 4a0339b
reflog delete: narrow scope of "cmd" passed to count_reflog_ent()
Change the "cb_data" we pass to the count_reflog_ent() to be the
&cb.cmd itself, instead of passing &cb and having the callback lookup
cb->cmd.
This makes it clear that the "cb" itself is the same memzero'd
structure on each iteration of the for-loop that uses &cb, except for
the "cmd" member.
Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 597af31 commit 4a0339b
1 file changed
+11
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
662 | 662 | | |
663 | 663 | | |
664 | 664 | | |
665 | | - | |
666 | | - | |
667 | | - | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | 671 | | |
672 | 672 | | |
673 | | - | |
| 673 | + | |
674 | 674 | | |
675 | 675 | | |
676 | 676 | | |
677 | | - | |
678 | | - | |
679 | 677 | | |
680 | 678 | | |
681 | 679 | | |
| |||
703 | 701 | | |
704 | 702 | | |
705 | 703 | | |
| 704 | + | |
706 | 705 | | |
707 | 706 | | |
708 | 707 | | |
| |||
716 | 715 | | |
717 | 716 | | |
718 | 717 | | |
719 | | - | |
720 | | - | |
| 718 | + | |
| 719 | + | |
721 | 720 | | |
722 | | - | |
723 | | - | |
724 | | - | |
| 721 | + | |
| 722 | + | |
| 723 | + | |
725 | 724 | | |
726 | 725 | | |
| 726 | + | |
727 | 727 | | |
728 | 728 | | |
729 | 729 | | |
| |||
0 commit comments