@matheusbsbs / matheus-bagliano / commits / 3988da0636
Fork 0

Documentation: add missing quotes to "git grep" examples

Without an indication to the contrary, Asciidoc puts 'quoted text' in italics, making the output look like this: git grep time_t -- *.[ch] 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 \) Looks for a line that has #define and either MAX_PATH or PATH_MAX. In the first example, the *.[ch] argument needs to be protected from the shell, or else it will only match files in the current directory. The second example has a stray backslash. Reported-by: Frédéric Brière <fbriere@fbriere.net> Cc: Mark Lodato <lodatom@gmail.com> Cc: Junio C Hamano <gitster@pobox.com> Signed-off-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Jonathan Nieder committed Aug 20, 2010 at 05:28 UTC 3988da063611de7391f794791a4622caf47c0708
1 file changed +2 -2
Documentation/git-grep.txt
+2 -2
@@ -191,11 +191,11 @@ OPTIONS
191 Examples
192 --------
193
194 -git grep 'time_t' \-- '*.[ch]'::
194 +git grep {apostrophe}time_t{apostrophe} \-- {apostrophe}*.[ch]{apostrophe}::
195 Looks for `time_t` in all tracked .c and .h files in the working
196 directory and its subdirectories.
197
198 -git grep -e \'#define\' --and \( -e MAX_PATH -e PATH_MAX \)::
198 +git grep -e {apostrophe}#define{apostrophe} --and \( -e MAX_PATH -e PATH_MAX \)::
199 Looks for a line that has `#define` and either `MAX_PATH` or
200 `PATH_MAX`.
201