author | Johannes Sixt <j6t@kdbg.org> | |
Tue, 21 Jul 2009 08:09:48 +0000 (10:09 +0200) | ||
committer | Paul Mackerras <paulus@samba.org> | |
Thu, 13 Aug 2009 11:49:09 +0000 (21:49 +1000) | ||
commit | 097e11182213afa4166c0fe58bd8135d71b52fb5 | |
tree | 37aad7db5702b86b848094c4ec87b91bbd8735e9 | tree | snapshot |
parent | a41ddbb649c72214a4861827eedc7b2eebe0608f | commit | diff |
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 <j6t@kdbg.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
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 <j6t@kdbg.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
gitk | diff | blob | history |