Thread (2 messages) flat view 2 messages, 2 authors, 2025-01-17

Re: [PATCH] grep: document negated line-number, column long options

From: Eric Sunshine <hidden>
Date: 2025-01-17 03:14:18

On Thu, Jan 16, 2025 at 7:30 PM Junio C Hamano [off-list ref] wrote:
quoted hunk ↗ jump to hunk
Subject: [PATCH] gitcli: document that command line trumps configuration

We centrally explain that "--no-whatever" is the way to countermand
the "--whatever" option.  Explain that a configured default can be
overridden by the corresponding command line option, too.

Signed-off-by: Junio C Hamano <redacted>
---
diff --git c/Documentation/gitcli.txt w/Documentation/gitcli.txt
@@ -161,6 +161,20 @@ can use `--no-track` to override that behaviour. The same goes for `--color`
+Options trump configuration
+~~~~~~~~~~~~~~~~~~~~~~~~~~~
+When there is a configuration variable and a command line option
+that tweaks the behaviour of the same aspect of a Git command,
+the command line option overrides the configuration variable.
+
+For example, the `user.signingKey` configuration variable is used to
+specify the default key used by the `git tag -s` command to create a
+signed tag.  By giving the `-u <key-id>` option to `git tag`, which
+specif es the key used to sign a tag, the key specified by the `-u`
s/specif es/specifies/
+option on the command line is used, instead of the configured
+`user.signingKey`.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help