X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=Documentation%2Fgit-repo-config.txt;h=fd44f629f5febb49a647578adb7804cd34b3afd6;hb=42d0ee8302c361a0e3bde7bc59858eda94bc13a4;hp=566cfa183640a629ee6dcfca714169ec48f28948;hpb=782b3b6aafe8d2d270a5f6153c183e1bde7a030a;p=git.git diff --git a/Documentation/git-repo-config.txt b/Documentation/git-repo-config.txt index 566cfa18..fd44f629 100644 --- a/Documentation/git-repo-config.txt +++ b/Documentation/git-repo-config.txt @@ -34,10 +34,10 @@ convert the value to the canonical form (simple decimal number for int, a "true" or "false" string for bool). If no type specifier is passed, no checks or transformations are performed on the value. -This command will fail if +This command will fail if: -. .git/config is invalid, -. .git/config can not be written to, +. The .git/config file is invalid, +. Can not write to .git/config, . no section was provided, . the section or key is invalid, . you try to unset an option which does not exist, or @@ -49,7 +49,7 @@ OPTIONS --replace-all:: Default behaviour is to replace at most one line. This replaces - all lines matching the key (and optionally the value_regex) + all lines matching the key (and optionally the value_regex). --get:: Get the value for a given key (optionally filtered by a regex @@ -59,6 +59,9 @@ OPTIONS Like get, but does not fail if the number of values for the key is not exactly one. +--get-regexp:: + Like --get-all, but interprets the name as a regular expression. + --unset:: Remove the line matching the key from .git/config.