mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
cat-file: move batch_options definition to top of file
That way all of the functions can make use of it. Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
ad42f28d0c
commit
bfd155943e
|
@ -10,6 +10,13 @@
|
|||
#include "streaming.h"
|
||||
#include "tree-walk.h"
|
||||
|
||||
struct batch_options {
|
||||
int enabled;
|
||||
int follow_symlinks;
|
||||
int print_contents;
|
||||
const char *format;
|
||||
};
|
||||
|
||||
static int cat_one_file(int opt, const char *exp_type, const char *obj_name,
|
||||
int unknown_type)
|
||||
{
|
||||
|
@ -232,12 +239,6 @@ static void print_object_or_die(int fd, struct expand_data *data)
|
|||
}
|
||||
}
|
||||
|
||||
struct batch_options {
|
||||
int enabled;
|
||||
int follow_symlinks;
|
||||
int print_contents;
|
||||
const char *format;
|
||||
};
|
||||
|
||||
static int batch_one_object(const char *obj_name, struct batch_options *opt,
|
||||
struct expand_data *data)
|
||||
|
|
Loading…
Reference in a new issue