author | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 20:58:31 +0000 (13:58 -0700) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Mon, 9 May 2011 21:59:09 +0000 (14:59 -0700) | ||
commit | 3bfba20dae16384cb7112268462bd01d30d4a698 | |
tree | 4c86f0f7fa049a8b198f695e0d7395d781b9013c | tree | snapshot |
parent | 83295964b3289e957d028960f14a2b71348c39ed | commit | diff |
convert: make it harder to screw up adding a conversion attribute
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>
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>
convert.c | diff | blob | history |