Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

Commit

Permalink
fix: test stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
DecathectZero committed Jun 27, 2024
1 parent 12fbc65 commit 3585876
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions filterrepo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
git filter-repo --commit-callback '
timestamp_str = commit.author_date
unix_timestamp_str = timestamp_str.split()[0]
unix_timestamp = int(unix_timestamp_str)

author_date = datetime.utcfromtimestamp(unix_timestamp)

comparison_date = datetime.strptime("2023-03-01", "%Y-%m-%d")
if (author_date < comparison_date and commit.old_id > 2):
commit.skip()

' --invert-paths --path-glob "packages/*"

0 comments on commit 3585876

Please sign in to comment.