Post #552325
2026-03-02 14:59 UTC
TIL about the git fast-import textual format!
Lets me write tests for the c2sp.org redirector against a synthetic git repository I can easily edit, and even gives me stable shorthands to refer to commits.
https://github.com/C2SP/C2SP/commit/99d43ad2adcddb85acf37028be45590cd78008c3
Replies (3)
-
@whitequark@social.treehouse.systems 2026-03-02 15:00
@filippo oh that's really useful
-
@rafaelmartins@mastodon.social 2026-03-02 16:40
@filippo I've been using that on integration tests with git since around 2016. git is awesome, plenty of hidden gems like that :)
-
@eta@gotosocial.i.eta.st 2026-03-02 15:04
@filippo I remember reading about it in the Pro Git book, which even had a little tutorial about how to use it to import data from some non-git VCS you might have used before; it's a very cute feature!