diff options
| author | Junio C Hamano <gitster@pobox.com> | 2024-03-07 15:59:41 -0800 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2024-03-07 15:59:41 -0800 |
| commit | f46a3f143eba661b9eb2b1e741447d6709eb6e90 (patch) | |
| tree | d32f6404c5eb1ff50bcf5caa86290e08d52673fb | |
| parent | Merge branch 'jt/commit-redundant-scissors-fix' (diff) | |
| parent | add: use unsigned type for collection of bits (diff) | |
| download | git-f46a3f143eba661b9eb2b1e741447d6709eb6e90.tar.gz git-f46a3f143eba661b9eb2b1e741447d6709eb6e90.zip | |
Merge branch 'eg/add-uflags'
Code clean-up practice.
* eg/add-uflags:
add: use unsigned type for collection of bits
| -rw-r--r-- | builtin/add.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/add.c b/builtin/add.c index ada7719561..393c10cbcf 100644 --- a/builtin/add.c +++ b/builtin/add.c @@ -115,7 +115,7 @@ static int refresh(int verbose, const struct pathspec *pathspec) int i, ret = 0; char *skip_worktree_seen = NULL; struct string_list only_match_skip_worktree = STRING_LIST_INIT_NODUP; - int flags = REFRESH_IGNORE_SKIP_WORKTREE | + unsigned int flags = REFRESH_IGNORE_SKIP_WORKTREE | (verbose ? REFRESH_IN_PORCELAIN : REFRESH_QUIET); seen = xcalloc(pathspec->nr, 1); |
