]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
scalar: annotate config file with "set by scalar"
authorDerrick Stolee <stolee@gmail.com>
Fri, 12 Dec 2025 15:15:24 +0000 (15:15 +0000)
committerJunio C Hamano <gitster@pobox.com>
Fri, 12 Dec 2025 23:43:27 +0000 (08:43 +0900)
commit48695fcde51e10d6d6e72653fb94b5fd339cd6e6
tree31823e6ea8a9171143181195dbfea602a727db64
parent9a2fb147f2c61d0cab52c883e7e26f5b7948e3ed
scalar: annotate config file with "set by scalar"

A repo may have config options set by 'scalar clone' or 'scalar
register' and then updated by 'scalar reconfigure'. It can be helpful to
point out which of those options were set by the latest scalar
recommendations.

Add "# set by scalar" to the end of each config option to assist users
in identifying why these config options were set in their repo. Use a new
helper method to simplify the two callsites.

Co-authored-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Derrick Stolee <stolee@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
scalar.c
t/t9210-scalar.sh