Commit 69c5f17
attr: drop DEBUG_ATTR code
Since its inception in d0bfd02 (Add basic infrastructure to assign
attributes to paths, 2007-04-12), the attribute code carries a little
bit of debug code that is conditionally compiled only when DEBUG_ATTR is
set. But since you have to know about it and make a special build of Git
to use it, it's not clear that it's helping anyone (and there are very
few mentions of it on the list over the years).
Meanwhile, it causes slight headaches. Since it's not built as part of a
regular compile, it's subject to bitrot. E.g., this was dealt with in
712efb1 (attr: make it build with DEBUG_ATTR again, 2013-01-15), and
it currently fails to build with DEVELOPER=1 since e810e06 (attr:
tighten const correctness with git_attr and match_attr, 2017-01-27).
And it causes confusion with -Wunused-parameter; the "what" parameter of
fill_one() is unused in a normal build, but needed in a debug build.
Let's just get rid of this code (and the now-useless parameter).
Signed-off-by: Jeff King <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>1 parent 116761b commit 69c5f17
1 file changed
+3
-38
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | 26 | | |
31 | 27 | | |
32 | 28 | | |
| |||
807 | 803 | | |
808 | 804 | | |
809 | 805 | | |
810 | | - | |
811 | | - | |
812 | | - | |
813 | | - | |
814 | | - | |
815 | | - | |
816 | | - | |
817 | | - | |
818 | | - | |
819 | | - | |
820 | | - | |
821 | | - | |
822 | | - | |
823 | | - | |
824 | | - | |
825 | | - | |
826 | | - | |
827 | | - | |
828 | | - | |
829 | | - | |
830 | | - | |
831 | | - | |
832 | | - | |
833 | | - | |
834 | | - | |
835 | | - | |
836 | | - | |
837 | 806 | | |
838 | 807 | | |
839 | 808 | | |
| |||
954 | 923 | | |
955 | 924 | | |
956 | 925 | | |
957 | | - | |
958 | 926 | | |
959 | 927 | | |
960 | 928 | | |
| |||
1028 | 996 | | |
1029 | 997 | | |
1030 | 998 | | |
1031 | | - | |
| 999 | + | |
1032 | 1000 | | |
1033 | 1001 | | |
1034 | 1002 | | |
| |||
1039 | 1007 | | |
1040 | 1008 | | |
1041 | 1009 | | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | 1010 | | |
1046 | 1011 | | |
1047 | 1012 | | |
| |||
1064 | 1029 | | |
1065 | 1030 | | |
1066 | 1031 | | |
1067 | | - | |
| 1032 | + | |
1068 | 1033 | | |
1069 | 1034 | | |
1070 | 1035 | | |
| |||
1076 | 1041 | | |
1077 | 1042 | | |
1078 | 1043 | | |
1079 | | - | |
| 1044 | + | |
1080 | 1045 | | |
1081 | 1046 | | |
1082 | 1047 | | |
| |||
0 commit comments