mirror of
https://github.com/newren/git-filter-repo.git
synced 2024-07-06 18:32:14 +02:00
filter-repo: track skipped/pruned commits
Signed-off-by: Elijah Newren <newren@gmail.com>
This commit is contained in:
parent
70e6f848ed
commit
1c3bc2fa1e
@ -593,6 +593,10 @@ class Commit(_GitElementWithId):
|
||||
return my_parents[0]
|
||||
return None
|
||||
|
||||
def skip(self, new_id=None):
|
||||
_SKIPPED_COMMITS.add(self.old_id or self.id)
|
||||
_GitElementWithId.skip(self, new_id)
|
||||
|
||||
class Tag(_GitElement):
|
||||
"""
|
||||
This class defines our representation of annotated tag elements.
|
||||
@ -1580,6 +1584,7 @@ def record_id_rename(old_id, new_id):
|
||||
# Internal globals
|
||||
_IDS = _IDs()
|
||||
_EXTRA_CHANGES = {} # idnum -> list of list of FileChanges
|
||||
_SKIPPED_COMMITS = set()
|
||||
_CURRENT_STREAM_NUMBER = 0
|
||||
|
||||
######################################################################
|
||||
|
Loading…
Reference in New Issue
Block a user