Commit 53ff692
config: make
The variables `packed_git_window_size` and `packed_git_limit` are global
config variables used in the `packfile.c` file. Since it is only used in
this file, let's change it from being a global config variable to a
local variable for the subsystem.
We do this by introducing a new local `packfile_config` struct in
`packfile.c` and also adding the required function to parse the said
config. We then use this within `packfile.c` to obtain the variables.
With this, we rid `packfile.c` from all global variable usage and this
means we can also remove the `USE_THE_REPOSITORY_VARIABLE` guard from
the file.
Helped-by: Taylor Blau <[email protected]>
Signed-off-by: Karthik Nayak <[email protected]>
Signed-off-by: Taylor Blau <[email protected]>packed_git_(limit|window_size) non-global variables1 parent 39efb72 commit 53ff692
File tree
5 files changed
+52
-30
lines changed- builtin
5 files changed
+52
-30
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3539 | 3539 | | |
3540 | 3540 | | |
3541 | 3541 | | |
3542 | | - | |
| 3542 | + | |
3543 | 3543 | | |
3544 | 3544 | | |
3545 | 3545 | | |
| |||
3660 | 3660 | | |
3661 | 3661 | | |
3662 | 3662 | | |
3663 | | - | |
| 3663 | + | |
3664 | 3664 | | |
3665 | 3665 | | |
3666 | 3666 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1493 | 1493 | | |
1494 | 1494 | | |
1495 | 1495 | | |
1496 | | - | |
1497 | | - | |
1498 | | - | |
1499 | | - | |
1500 | | - | |
1501 | | - | |
1502 | | - | |
1503 | | - | |
1504 | | - | |
1505 | | - | |
1506 | | - | |
1507 | | - | |
1508 | 1496 | | |
1509 | 1497 | | |
1510 | 1498 | | |
1511 | 1499 | | |
1512 | 1500 | | |
1513 | | - | |
1514 | | - | |
1515 | | - | |
1516 | | - | |
1517 | | - | |
1518 | 1501 | | |
1519 | 1502 | | |
1520 | 1503 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
54 | 52 | | |
55 | 53 | | |
56 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | 1 | | |
3 | 2 | | |
4 | 3 | | |
| |||
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
48 | 58 | | |
49 | 59 | | |
50 | 60 | | |
51 | | - | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
52 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
53 | 89 | | |
54 | 90 | | |
55 | 91 | | |
56 | 92 | | |
57 | 93 | | |
58 | | - | |
59 | | - | |
| 94 | + | |
| 95 | + | |
60 | 96 | | |
61 | 97 | | |
62 | 98 | | |
| |||
652 | 688 | | |
653 | 689 | | |
654 | 690 | | |
655 | | - | |
| 691 | + | |
| 692 | + | |
656 | 693 | | |
657 | 694 | | |
| 695 | + | |
| 696 | + | |
| 697 | + | |
658 | 698 | | |
659 | 699 | | |
660 | 700 | | |
661 | 701 | | |
662 | 702 | | |
663 | 703 | | |
664 | | - | |
665 | | - | |
| 704 | + | |
| 705 | + | |
666 | 706 | | |
667 | 707 | | |
668 | | - | |
| 708 | + | |
| 709 | + | |
669 | 710 | | |
670 | 711 | | |
671 | 712 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
| 92 | + | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| |||
0 commit comments