commit | f0d4c36701613dc9c305208d81b139208e40414c | [log] [tgz] |
---|---|---|
author | Shawn O. Pearce <sop@google.com> | Fri Jun 12 09:33:48 2009 -0700 |
committer | Shawn O. Pearce <sop@google.com> | Fri Jun 12 09:33:48 2009 -0700 |
tree | e33abb1c63aeacd3160aad4301025b4cde056208 | |
parent | 2ec00b92724982708071dc0eed707659468d2bcf [diff] |
grep: Only use --color on git 1.6.3 and later The --color flag wasn't introduced until git 1.6.3. Prior to that version, `git grep --color` just produces a fatal error, as it is an unsupported option. Since this is just pretty output and is not critical to execution, we can simply omit the option if the version of git we are running on doesn't support it. Signed-off-by: Shawn O. Pearce <sop@google.com>