Commit 097e111
gitk: Do not hard-code "encoding" in attribute lookup functions
Commit 39ee47e (Clean up file encoding code and add enable/disable option,
2008-10-15) rewrote the attribute lookup functions gitattr and
cache_gitattr, but in the process hard-coded the attribute name "encoding"
instead of using the functions' parameters. This fixes it.
This is not a serious regression because currently all callers look only
for "encoding".
Further note that this fix assumes that future callers will not pass an
attribute name that contains regex special characters.
Signed-off-by: Johannes Sixt <[email protected]>
Signed-off-by: Paul Mackerras <[email protected]>1 parent a41ddbb commit 097e111
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10901 | 10901 | | |
10902 | 10902 | | |
10903 | 10903 | | |
10904 | | - | |
| 10904 | + | |
10905 | 10905 | | |
10906 | 10906 | | |
10907 | 10907 | | |
| |||
10929 | 10929 | | |
10930 | 10930 | | |
10931 | 10931 | | |
10932 | | - | |
| 10932 | + | |
10933 | 10933 | | |
10934 | 10934 | | |
10935 | 10935 | | |
| |||
0 commit comments