Thread (2 messages) flat view 2 messages, 2 authors, 2018-04-05

Re: [PATCH v3 1/3] builtin/config: introduce `--default`

From: Junio C Hamano <hidden>
Date: 2018-03-30 18:06:30

Taylor Blau [off-list ref] writes:
For some use cases, callers of the `git-config(1)` builtin would like to
fallback to default values when the slot asked for does not exist. In
addition, users would like to use existing type specifiers to ensure
that values are parsed correctly when they do exist in the
configuration.
...
+--default value::
+  When using `--get`, and the requested slot is not found, behave as if value
+  were the value assigned to the that slot.
For "diff.<slot>.color", the above is OK, but in general,
configuration variables are not called "slot".  s/slot/variable/.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help