News for hackers. Stuff that matters.
Re:The Perfect Commit by simonw on Saturday October 29, 2022 @08:50PM (#33389665)
This is why my workflow is so issue heavy: I use issue comments to constantly capture my context as I'm working, rather than using small commits.

I sometimes even run "git diff" and copy the result into an issue comment to record a potential implementation route that I'm not fully convinced of just yet.

Re:The Perfect Commit by davnn on Sunday October 30, 2022 @01:25AM (#33391360)
If most of the workflow and documentation is not based on git, but instead on issues and PRs, is there an easy way to swap the underlying platform, i.e. GitHub to Gitlab?
Re:The Perfect Commit by simonw on Sunday October 30, 2022 @10:31AM (#33394791)
Not easy but possible: you export a copy of the issue thread content (via the issues API, which I have a bunch of experience with). Then you host those copies as flat HTML somewhere, such that anyone who needs to find issue 56 can hit some-url/56.html

Then you could either rewrite the commit history to add links to this new location to each commit, or I'm investigating using the "git notes" mechanism to add those updated issue links to existing commits without needing to rewrite commit messages (and hence rewrite the hashes).