]> git.ipfire.org Git - thirdparty/git.git/commit - attr.c
Change parse_attr() to take a pointer to struct attr_state
authorMichael Haggerty <mhagger@alum.mit.edu>
Fri, 12 Aug 2011 21:43:07 +0000 (23:43 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 14 Aug 2011 22:01:59 +0000 (15:01 -0700)
commitd175129857fe712bc7a4d882b0b9ef9f9d0a337e
treef1b489116e7f88541ba6a9af6229a8cbded3a113
parent4c7517c9cc7cfc7961a5c31d7539a71f35fae2c2
Change parse_attr() to take a pointer to struct attr_state

parse_attr() only needs access to the attr_state to which it should
store its results, not to the whole match_attr structure.  This change
also removes the need for it to know num_attr.  Change its signature
accordingly and add a comment.

Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
attr.c