X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=Documentation%2Fgit-grep.txt;h=dab0a78fa890d0c0cd193d89b7f4ac9ed19fb001;hb=4e57bafe8bc60e35b9841b22f99882581c466daf;hp=5474dd7f94c4b3217230808e656662d0edcef207;hpb=2a16315031cf478601ea150f7861d4f86b1350a2;p=git.git diff --git a/Documentation/git-grep.txt b/Documentation/git-grep.txt index 5474dd7f9..dab0a78fa 100644 --- a/Documentation/git-grep.txt +++ b/Documentation/git-grep.txt @@ -191,11 +191,11 @@ OPTIONS Examples -------- -git grep 'time_t' \-- '*.[ch]':: +git grep {apostrophe}time_t{apostrophe} \-- {apostrophe}*.[ch]{apostrophe}:: Looks for `time_t` in all tracked .c and .h files in the working directory and its subdirectories. -git grep -e \'#define\' --and \( -e MAX_PATH -e PATH_MAX \):: +git grep -e {apostrophe}#define{apostrophe} --and \( -e MAX_PATH -e PATH_MAX \):: Looks for a line that has `#define` and either `MAX_PATH` or `PATH_MAX`.