convert: make it harder to screw up adding a conversion attribute
authorJunio C Hamano <gitster@pobox.com>
Mon, 9 May 2011 20:58:31 +0000 (13:58 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 9 May 2011 21:59:09 +0000 (14:59 -0700)
The current internal API requires the callers of setup_convert_check() to
supply the git_attr_check structures (hence they need to know how many to
allocate), but they grab the same set of attributes for given path.

Define a new convert_attrs() API that fills a higher level information that
the callers (convert_to_git and convert_to_working_tree) really want, and
move the common code to interact with the attributes system to it.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found