Scalar vs JGit, was Re: [PATCH v7 0/2] Conditional config includes based on remote URL
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 25, 2022, 13:26 UTC
- Message-ID
- <nycvar.QRO.7.76.6.2201251424530.2121@tvgsbejvaqbjf.bet>
- In-Reply-To
- <CABPp-BGtA1KwV8kdN52r5=XTCZrS_e3sPYfTxMnoEVyVV8Hc_w@mail.gmail.com>
Hi Elijah,
On Mon, 10 Jan 2022, Elijah Newren wrote:
Show 32 quoted lines
> On Mon, Jan 10, 2022 at 11:22 AM Jonathan Tan <jonathantanmy@google.com> wrote: > > > > Elijah Newren <newren@gmail.com> writes: > > > > > Scalar also has a mechanism for providing potentially large blocks > > > of pre-vetted configuration for users. It does so as part of a new > > > top-level command. And it does so with a very opinionated set of > > > values that are not configurable. Thus, while I'd like to use it, > > > they use a configuration option that would break things badly at my > > > $DAYJOB. (Too many gradle plugins using jgit, which doesn't > > > understand index.version=4 and will blow up with a very suboptimal > > > error message when they see it.) And, it's very specific to scalar; > > > we probably don't want to add a new toplevel command everytime > > > someone wants common configuration to be easily grabbed by some > > > user. > > > > Do you have more information on this? The closest thing I've seen is > > "Scalar Config" under "Modifying Configuration Values" in [1], which > > seems to be more about bundling additional tools (which may change > > config, of course). > > > > Unless you're referring to the config bundled in the Scalar tool itself, > > in which case this patch set seems orthogonal and potentially > > complementary - I was envisioning config being provided by a package > > manager package, but Scalar could provide some too for users to use at > > their own discretion. > > > > [1] https://github.com/microsoft/git/blob/7a514b4c2d5df7fdd2f66f048010d8ddcb412d0b/contrib/scalar/docs/troubleshooting.md > > Yes, I was referring to the config hardcoded in the Scalar tool itself > (see set_recommended_config() in > https://lore.kernel.org/git/4439ab4de0bc3f48a6bdcf4b5165b16fad792ebd.1638538470.git.gitgitgadget@gmail.com/).
I was kind of thinking that such problems might be solved via introducing e.g. `scalar.ensureJGitCompatibility = true` (which should be a relatively trivial patch to write).
What do you think?
Ciao, Dscho