summaryrefslogtreecommitdiff
path: root/commit.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2024-03-13 10:32:13 -0700
committerJunio C Hamano <gitster@pobox.com>2024-03-13 10:43:32 -0700
commit63acdc4827869a6cedd46aca62e16819498c53fb (patch)
tree08769acb5146c3fcc47dff14b6c7cedac6e2f264 /commit.c
parent945115026aa63df4ab849ab14a04da31623abece (diff)
status: unify parsing of --untracked= and status.showUntrackedFiles
There are two code paths that take a string and parse it to enum untracked_status_type. Introduce a helper function and use it. As these two places handle an error differently, add an additional invalid value to the enum, and have the caller of the helper handle the error condition, instead of dying or emitting error message from the helper. Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'commit.c')
0 files changed, 0 insertions, 0 deletions