]> git.ipfire.org Git - thirdparty/git.git/commit
tree-walk: rename "error" variable
authorJeff King <peff@peff.net>
Thu, 31 Aug 2023 06:19:22 +0000 (02:19 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 31 Aug 2023 22:51:07 +0000 (15:51 -0700)
commitc7cd0e34cd5f62339d4c92e96d2e7dd848dd5a6c
tree6378d5bc5996586abfc581fb9bd2d8e0ae7e93d0
parentacd13d1eec93e714add1b3f94c8c175d6a8171cb
tree-walk: rename "error" variable

The "error" variable in traverse_trees() shadows the global error()
function (meaning we can't call error() from here). Let's call the local
variable "ret" instead, which matches the idiom in other functions.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
tree-walk.c