Skip to content

Commit

Permalink
filter-repo: parse blobs after commits
Browse files Browse the repository at this point in the history
Performance gain on blob callbacks, now they applied only to filtered commits.

Signed-off-by: Vladislav Javadov <[email protected]>
  • Loading branch information
vapaamies committed Oct 25, 2024
1 parent a9093a6 commit 6e7ca39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions git-filter-repo
Original file line number Diff line number Diff line change
Expand Up @@ -1497,12 +1497,12 @@ class FastExportParser(object):
# Run over the input and do the filtering
self._advance_currentline()
while self._currentline:
if self._currentline.startswith(b'blob'):
if self._currentline.startswith(b'commit'):
self._parse_commit()
elif self._currentline.startswith(b'blob'):
self._parse_blob()
elif self._currentline.startswith(b'reset'):
self._parse_reset()
elif self._currentline.startswith(b'commit'):
self._parse_commit()
elif self._currentline.startswith(b'tag'):
self._parse_tag()
elif self._currentline.startswith(b'progress'):
Expand Down

0 comments on commit 6e7ca39

Please sign in to comment.