This question is based on this thread.
Is [---]
a comment in Git such that I can use only % tool=opendiff %
once in my .gitconfig
?
This question is based on this thread.
Is [---]
a comment in Git such that I can use only % tool=opendiff %
once in my .gitconfig
?
I think you are asking whether the square bracket syntax in
.gitconfig
means something significant. The answer is yes, it separates.gitconfig
into sections. Each section has a name, shown between the square brackets. For example:In the above example, the section name is
core
. If you change the wordcore
to something else, Git won't be able to find, for example, thebare
option because it needs to be inside thecore
section.The git-config(1) manual page has a whole section describing the format of the configuration file.