Jonathan Tan
ad2db4030e
fsck: remove redundant parse_tree() invocation
...
If obj->type == OBJ_TREE, an invocation of fsck_walk() will invoke
parse_tree() and return quickly if that returns nonzero, so it is of no
use for traverse_one_object() to invoke parse_tree() in this situation
before invoking fsck_walk(). Remove that code.
The behavior of traverse_one_object() is changed slightly in that it now
returns -1 instead of 1 in the case that parse_tree() fails, but this is
not an issue because its only caller (traverse_reachable) does not care
about the value as long as it is nonzero.
This code was introduced in commit 271b8d2 ("builtin-fsck: move away
from object-refs to fsck_walk", 2008-02-25). The same issue existed in
that commit.
Signed-off-by: Jonathan Tan <jonathantanmy@google.com >
Reviewed-by: Jonathan Nieder <jrnieder@gmail.com >
Signed-off-by: Junio C Hamano <gitster@pobox.com >
2017-07-20 14:53:51 -07:00
..
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2016-09-07 12:59:42 -07:00
2016-11-22 13:55:20 -08:00
2017-06-24 14:28:41 -07:00
2017-07-12 15:18:23 -07:00
2017-03-21 11:18:41 -07:00
2017-07-05 13:32:57 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2016-02-22 14:51:09 -08:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-07-10 13:42:51 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-05-30 14:45:03 +09:00
2017-07-13 16:14:54 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 15:29:31 -07:00
2017-06-24 14:28:41 -07:00
2017-06-30 12:49:28 -07:00
2017-06-30 12:49:28 -07:00
2017-03-31 08:33:56 -07:00
2017-07-13 16:14:54 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-07-20 14:53:51 -07:00
2017-07-18 12:48:10 -07:00
2015-10-16 15:27:52 -07:00
2017-07-13 16:14:54 -07:00
2017-06-15 12:56:22 -07:00
2017-06-15 12:56:22 -07:00
2017-07-05 13:32:57 -07:00
2017-06-15 12:56:22 -07:00
2016-06-13 10:37:48 -07:00
2017-07-12 15:18:23 -07:00
2017-06-24 14:28:41 -07:00
2017-06-23 18:27:07 -07:00
2017-06-24 14:28:41 -07:00
2017-03-21 11:18:41 -07:00
2017-05-08 12:18:19 +09:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-03-26 22:08:21 -07:00
2016-09-15 13:17:32 -07:00
2017-05-08 15:12:57 +09:00
2017-06-24 14:28:41 -07:00
2015-10-16 15:27:52 -07:00
2017-05-08 12:18:19 +09:00
2017-06-15 12:56:22 -07:00
2017-07-10 13:42:51 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-05-08 12:18:19 +09:00
2017-04-14 03:53:25 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 11:09:52 -07:00
2017-07-05 13:32:56 -07:00
2017-07-13 16:14:54 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-07-12 15:18:23 -07:00
2017-07-10 13:42:51 -07:00
2017-05-30 14:45:04 +09:00
2017-05-30 14:45:04 +09:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-07-10 13:42:51 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-15 12:56:22 -07:00
2017-07-10 13:42:51 -07:00
2017-01-23 18:51:56 -08:00
2017-06-15 12:56:22 -07:00
2017-07-10 13:59:09 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-15 12:56:22 -07:00
2017-05-30 14:45:04 +09:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00
2017-06-15 12:56:22 -07:00
2017-06-24 14:28:41 -07:00
2017-06-15 12:56:22 -07:00