Thread (36 messages) flat view 36 messages, 2 authors, 4d ago

Re: [PATCH 03/10] builtin/fsck: de-globalize option handling

From: Karthik Nayak <hidden>
Date: 2026-08-27 10:05:24

Patrick Steinhardt [off-list ref] writes:
In subsequent commits we're about to rework some of the option handling
in git-fsck(1) a bit. It is currently a bit of a mess though due to lots
of global state that makes it hard to see which flags are used where
exactly.

Refactor the code by moving the fsck options into `cmd_fsck()`. This
allows us to convert some of the options into function-local variables.
Nice. I was wondering how much work this would involve, but it seems
like these variables are only used in `cmd_fsck()` anyway, so they
didn't even have to be global. Good spotting.

[snip]

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help