Commit f29f552
committed
environment: move "warn_on_object_refname_ambiguity" into
The `warn_on_object_refname_ambiguity` variable was previously a global
integer, which makes it shared across repository instances in a single
process.
Move it into `repo_config_values` so the value is associated with the
repository from which it was read. This preserves existing behavior
while avoiding cross-repository state leakage and is another step
toward eliminating repository-dependent global state.
Update all references to use repo_config_values().
Mentored-by: Christian Couder <christian.couder@gmail.com>
Mentored-by: Usman Akinyemi <usmanakinyemi202@gmail.com>
Signed-off-by: Olamide Caleb Bello <belkid98@gmail.com>struct repo_config_values
1 parent 704bdc7 commit f29f552
File tree
7 files changed
+21
-16
lines changed- builtin
7 files changed
+21
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
875 | 875 | | |
876 | 876 | | |
877 | 877 | | |
| 878 | + | |
878 | 879 | | |
879 | 880 | | |
880 | 881 | | |
| |||
947 | 948 | | |
948 | 949 | | |
949 | 950 | | |
950 | | - | |
951 | | - | |
| 951 | + | |
| 952 | + | |
952 | 953 | | |
953 | 954 | | |
954 | 955 | | |
| |||
976 | 977 | | |
977 | 978 | | |
978 | 979 | | |
979 | | - | |
| 980 | + | |
980 | 981 | | |
981 | 982 | | |
982 | 983 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4661 | 4661 | | |
4662 | 4662 | | |
4663 | 4663 | | |
| 4664 | + | |
4664 | 4665 | | |
4665 | 4666 | | |
4666 | 4667 | | |
| |||
4671 | 4672 | | |
4672 | 4673 | | |
4673 | 4674 | | |
4674 | | - | |
4675 | | - | |
| 4675 | + | |
| 4676 | + | |
4676 | 4677 | | |
4677 | 4678 | | |
4678 | 4679 | | |
| |||
4700 | 4701 | | |
4701 | 4702 | | |
4702 | 4703 | | |
4703 | | - | |
| 4704 | + | |
4704 | 4705 | | |
4705 | 4706 | | |
4706 | 4707 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
51 | 50 | | |
52 | 51 | | |
53 | 52 | | |
| |||
744 | 743 | | |
745 | 744 | | |
746 | 745 | | |
| 746 | + | |
747 | 747 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
| 101 | + | |
101 | 102 | | |
102 | 103 | | |
103 | 104 | | |
| |||
175 | 176 | | |
176 | 177 | | |
177 | 178 | | |
178 | | - | |
179 | 179 | | |
180 | 180 | | |
181 | 181 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
969 | 969 | | |
970 | 970 | | |
971 | 971 | | |
| 972 | + | |
972 | 973 | | |
973 | 974 | | |
974 | 975 | | |
975 | 976 | | |
976 | | - | |
| 977 | + | |
977 | 978 | | |
978 | 979 | | |
979 | 980 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2901 | 2901 | | |
2902 | 2902 | | |
2903 | 2903 | | |
| 2904 | + | |
2904 | 2905 | | |
2905 | | - | |
2906 | | - | |
2907 | | - | |
| 2906 | + | |
| 2907 | + | |
| 2908 | + | |
2908 | 2909 | | |
2909 | 2910 | | |
2910 | 2911 | | |
| |||
2937 | 2938 | | |
2938 | 2939 | | |
2939 | 2940 | | |
2940 | | - | |
| 2941 | + | |
2941 | 2942 | | |
2942 | 2943 | | |
2943 | 2944 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
898 | 898 | | |
899 | 899 | | |
900 | 900 | | |
| 901 | + | |
901 | 902 | | |
902 | | - | |
903 | | - | |
| 903 | + | |
| 904 | + | |
904 | 905 | | |
905 | 906 | | |
906 | | - | |
| 907 | + | |
907 | 908 | | |
908 | 909 | | |
909 | 910 | | |
| |||
0 commit comments