author | Michael Haggerty <mhagger@alum.mit.edu> | |
Fri, 12 Aug 2011 21:43:07 +0000 (23:43 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Sun, 14 Aug 2011 22:01:59 +0000 (15:01 -0700) | ||
commit | d175129857fe712bc7a4d882b0b9ef9f9d0a337e | |
tree | f1b489116e7f88541ba6a9af6229a8cbded3a113 | tree | snapshot |
parent | 4c7517c9cc7cfc7961a5c31d7539a71f35fae2c2 | commit | diff |
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>
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 | diff | blob | history |