]> git.ipfire.org Git - thirdparty/git.git/commit - walker.c
walker: drop fields of `struct walker` which are always 1
authorMartin Ågren <martin.agren@gmail.com>
Sun, 22 Apr 2018 18:12:50 +0000 (20:12 +0200)
committerJunio C Hamano <gitster@pobox.com>
Tue, 24 Apr 2018 01:55:04 +0000 (10:55 +0900)
commit0b6b34295413410e4ca52df4671d2a217e56a57b
tree9e02df32fe16de0beb8f2cc7103174a6e7d5a7b0
parent2e85a0c8abe29f9adad2ec0a977629ba90723973
walker: drop fields of `struct walker` which are always 1

After the previous commit, both users of `struct walker` set `get_tree`,
`get_history` and `get_all` to 1. Drop those fields and simplify the
walker implementation accordingly.

Let's hope that any out-of-tree users will not mind this change. They
should notice that the compilation fails as they try to set these
fields. (If they do not set them, note that `get_http_walker()` leaves
them undefined, so the behavior will have been undefined all the time.)

Signed-off-by: Martin Ågren <martin.agren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
http-fetch.c
remote-curl.c
walker.c
walker.h