diff options
author | Martin Ågren <martin.agren@gmail.com> | 2018-04-22 20:12:50 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2018-04-24 10:55:04 +0900 |
commit | 0b6b34295413410e4ca52df4671d2a217e56a57b (patch) | |
tree | 9e02df32fe16de0beb8f2cc7103174a6e7d5a7b0 /walker.h | |
parent | http-fetch: make `-a` standard behaviour (diff) | |
download | tgif-0b6b34295413410e4ca52df4671d2a217e56a57b.tar.xz |
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>
Diffstat (limited to 'walker.h')
-rw-r--r-- | walker.h | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -9,9 +9,6 @@ struct walker { void (*prefetch)(struct walker *, unsigned char *sha1); int (*fetch)(struct walker *, unsigned char *sha1); void (*cleanup)(struct walker *); - int get_tree; - int get_history; - int get_all; int get_verbosely; int get_recover; |