-
Notifications
You must be signed in to change notification settings - Fork 402
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parse filename unambiguously using color escape sequences (#1634)
* Simplify handle_grep_line via early return Rather than indenting the entire body of the function twice, return early if the conditions aren't met. * Parse filename unambiguously using color escape sequences `git grep`, by default, emits ANSI color escape sequences around the filename, separator, and line number. Parse these if available. This currently assumes the default colors, and will fall back to the previous parsing if any of the colors have been changed. Add tests for filenames that previously failed to parse correctly.
- Loading branch information
1 parent
037665b
commit f7ae06a
Showing
1 changed file
with
170 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters