X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=pep-103.txt;h=07831041b88393f091a25f68abfbba7372f3c348;hb=fc844705b7c145d77a60baea7210c26f06cae76a;hp=d11403345a0d6bd24fc863992becc4ac7b907f23;hpb=7ba22e6bc0b8a7e77d5c3e26995e458fb2784976;p=git-wiki.git diff --git a/pep-103.txt b/pep-103.txt index d114033..0783104 100644 --- a/pep-103.txt +++ b/pep-103.txt @@ -846,12 +846,12 @@ but you can use your editor:: BTW, if git is instructed to use ``less`` as the pager (i.e., if pager is not configured in git at all it uses ``less`` by default, or if it gets ``less`` from GIT_PAGER or PAGER environment variables, or if it -was configured with ``git config --global core.pager less``, or +was configured with ``git config [--global] core.pager less``, or ``less`` is used in the command ``git grep -Oless``) ``git grep`` passes ``+/$pattern`` option to ``less`` which is quite convenient. Unfortunately, ``git grep`` doesn't pass the pattern if the pager is not exactly ``less``, even if it's ``less`` with parameters (something -like ``git config --global core.pager less -FRSXgimq``); fortunately, +like ``git config [--global] core.pager less -FRSXgimq``); fortunately, ``git grep -Oless`` always passes the pattern.