Skip to content
  • Jonathan Nieder's avatar
    Documentation: add missing quotes to "git grep" examples · 3988da06
    Jonathan Nieder authored and Junio C Hamano's avatar Junio C Hamano committed
    
    
    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: default avatarFrédéric Brière <fbriere@fbriere.net>
    Cc: Mark Lodato <lodatom@gmail.com>
    Cc: Junio C Hamano <gitster@pobox.com>
    Signed-off-by: default avatarJonathan Nieder <jrnieder@gmail.com>
    Signed-off-by: default avatarJunio C Hamano <gitster@pobox.com>
    3988da06