diff options
author | Torsten Bögershausen <tboegi@web.de> | 2018-09-12 21:32:02 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-09-12 15:15:34 -0700 |
commit | d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2 (patch) | |
tree | ee83da9cbe076b9456d1c04d22ed3d08be2f88dd /attr.h | |
parent | Git 2.19 (diff) | |
download | tgif-d64324cb60e4d0e1f5fdc1d3319c79ddbf5d0eb2.tar.xz |
Make git_check_attr() a void function
git_check_attr() returns always 0.
Remove all the error handling code of the callers, which is never executed.
Change git_check_attr() to be a void function.
Signed-off-by: Torsten Bögershausen <tboegi@web.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'attr.h')
-rw-r--r-- | attr.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -63,8 +63,8 @@ void attr_check_free(struct attr_check *check); */ const char *git_attr_name(const struct git_attr *); -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); /* * Retrieve all attributes that apply to the specified path. |