diff options
| author | Junio C Hamano <gitster@pobox.com> | 2018-09-24 10:30:45 -0700 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2018-09-24 10:30:45 -0700 |
| commit | 10de0f802db2d1ca6a157a7fe3eedb63191e4af5 (patch) | |
| tree | b0b0807cbbdf0c0545e21d413529f51e5fc15d36 /attr.c | |
| parent | 87ae8a1a950da28a2f75570ecaecbc9cd439c64c (diff) | |
| parent | d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2 (diff) | |
| download | git-10de0f802db2d1ca6a157a7fe3eedb63191e4af5.tar.xz | |
Merge branch 'tb/void-check-attr'
Code clean-up.
* tb/void-check-attr:
Make git_check_attr() a void function
Diffstat (limited to 'attr.c')
| -rw-r--r-- | attr.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -1143,9 +1143,9 @@ static void collect_some_attrs(const struct index_state *istate, fill(path, pathlen, basename_offset, check->stack, check->all_attrs, rem); } -int git_check_attr(const struct index_state *istate, - const char *path, - struct attr_check *check) +void git_check_attr(const struct index_state *istate, + const char *path, + struct attr_check *check) { int i; @@ -1158,8 +1158,6 @@ int git_check_attr(const struct index_state *istate, value = ATTR__UNSET; check->items[i].value = value; } - - return 0; } void git_all_attrs(const struct index_state *istate, |
