Re: [RFC PATCH] config: Introduce functions to write non-standard file
Hi Junio,
Junio C Hamano writes:
> Ramkumar Ramachandra <artagnon@gmail.com> writes:
Show 6 quoted lines
> Yuck, what an ugly hack when you are so close. Why not restructure the
> code in such a way that the updated config-set-multivar and set-in-file
> share the code better? If the former takes a hardcoded logic to decide
> which file to write to while the latter takes the filename to write to as
> its argument, wouldn't it be a lot more natural to make config-set-multivar
> call set-in-file after computing what filename parameter to pass?
Ugh, sorry. Fixed now.
-- Ram