Skip to content

Commit 7823a51

Browse files
zivarahgitster
authored andcommitted
docs: clarify file options in git-config --edit
The description for the `-e`/`--edit` option references scopes inconsistently: system and global are referenced by their option name (`--system`/`--global`), but repository (`--local` is not. Additionally, neither `--worktree` nor `--file` are referenced at all, despite also being a valid options. Update the description to mention all four available scopes as well as `--file`, referencing each consistently by their option name. Signed-off-by: Brian Lyles <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 3c2a3fd commit 7823a51

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Documentation/git-config.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,8 @@ Valid `<type>`'s include:
275275
-e::
276276
--edit::
277277
Opens an editor to modify the specified config file; either
278-
`--system`, `--global`, or repository (default).
278+
`--system`, `--global`, `--local` (default), `--worktree`, or
279+
`--file <config-file>`.
279280

280281
--[no-]includes::
281282
Respect `include.*` directives in config files when looking up

0 commit comments

Comments
 (0)