author | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 18:23:04 +0000 (11:23 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 21:59:09 +0000 (14:59 -0700) | ||
commit | 83295964b3289e957d028960f14a2b71348c39ed | |
tree | 29a44622f14e8374c8b1b6d18032dcb5d521e635 | tree | snapshot |
parent | c61dcff9d6944eb35abf7fc7faa36f23a49fabf6 | commit | diff |
convert: make it safer to add conversion attributes
The places that need to pass an array of "struct git_attr_check" needed to
be careful to pass a large enough array and know what index each element
lied. Make it safer and easier to code these.
Besides, the hard-coded sequence of initializing various attributes was
too ugly after we gained more than a few attributes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
The places that need to pass an array of "struct git_attr_check" needed to
be careful to pass a large enough array and know what index each element
lied. Make it safer and easier to code these.
Besides, the hard-coded sequence of initializing various attributes was
too ugly after we gained more than a few attributes.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
convert.c | diff | blob | history |