forked from gitextensions/gitextensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prior code used a more complex approach and did a lot more string allocation. This commit introduces a regex, and modifies the git log format so that there's only one \0 character, and it separates log entries. We also know the dates are numeric, so can parse confidently (without TryParse). The file name code was unused and has been removed. The state machine is no longer needed as each log item is separated by a \0 and can therefore be processed in one go via the regex.
- Loading branch information
1 parent
fb8358d
commit 1f6b0ca
Showing
1 changed file
with
57 additions
and
121 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