Settings

Theme

Ask HN: Project that amends Git history based on a schedule

5 points by SamBorick 2 years ago · 3 comments · 1 min read


Hi HN, sometime in the last year someone posted a project that would modify git history in a repository based on a provided schedule. You could specify a time range, and it would go through and move commits outside of that time range. I've googled and checked the various HN search products, but I haven't been able to find it! Does anyone remember?

oftenwrong 2 years ago

I am not familiar with a project that does that specifically. However, you can easily perform that type of operation with git-filter-repo and its --commit-callback flag , which lets you modify commit objects with a custom Python snippet.

https://github.com/newren/git-filter-repo

cpach 2 years ago

What was the purpose of this tool?

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection