News for hackers. Stuff that matters.
Re:Extremely Linear Git History by loeg on Tuesday November 22, 2022 @05:14PM (#33712321)
For local repositories, you can do it as a post-commit hook.

In the hook:

  prefix=whatever
  old=$(git rev-parse HEAD)
  new=$(brute force $prefix)
  git update-ref -m "chose prefix $prefix" --create-reflog HEAD "$new"
Of course, it's pretty silly and slow.

There are no comments on this comment yet.