Re: [RFC PATCH] config: teach `repo_config()` to allow `repo` to be NULL
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 1, 2025, 19:45 UTC
- Message-ID
- <xmqq7c58zg9w.fsf@gitster.g>
- In-Reply-To
- <CAPSxiM-fzKUtvvf-DB2=VaGznr9utyb6zaKU5onxpy49KPChUA@mail.gmail.com>
Usman Akinyemi <usmanakinyemi202@gmail.com> writes:
> Also, about the testing, I was thinking of using the clar framework or the > test-tool, do you have any in mind ?
Neither of them seems a good fit for the task to me.
Once you rewrite one of the built-in commands using this and run "git $cmd -h" under "nongit" helper, wouldn't that be a good enough test to future-proof the codepath?