[PATCH v2 05/12] fast-import: use int for some bool flags
Christian Couder <[email protected]> Tue, 4 Aug 2026 12:03:48 +0200
| Newsgroups | org.kernel.vger.git |
|---|---|
| Message-ID | <[email protected]> |
The `show_stats` and `quiet` flags are meant to be parsed and used as boolean flags. To easily parse them using OPT_BOOL in a following commit, let's change their type from 'unsigned int' to just 'int'. Signed-off-by: Christian Couder <[email protected]> --- builtin/fast-import.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builtin/fast-import.c b/builtin/fast-import.c index 9fc9ebe65a..9c8edd7c89 100644 --- a/builtin/fast-import.c +++ b/builtin/fast-import.c @@ -182,8 +182,8 @@ static unsigned long branch_count; static unsigned long branch_load_count; static int failure; static FILE *pack_edges; -static unsigned int show_stats = 1; -static unsigned int quiet; +static int show_stats = 1; +static int quiet; static int global_argc; static const char **global_argv; static const char *global_prefix; -- 2.55.0.492.g44bba30fd7.dirty