News for hackers. Stuff that matters.
Re:Git techniques by hnlmorg on Thursday November 11, 2021 @01:41AM (#29185116)
Is commit groups a feature or a wish list? I hadn't heard of it before but a Duck Duck Go search only throws up a blog post discussing the desirability for such a feature in git.
Re:Git techniques by periodontal on Thursday November 11, 2021 @01:57AM (#29185207)
You can get something somewhat similar with "always create merge commit" workflows (no fast forward) and changing your tooling to look at the first-parent-history by default. This view will have one commit per merge, but you can choose to follow the second+ parent history for a given commit to see what went into it.
Re:Git techniques by globular-toast on Thursday November 11, 2021 @05:21AM (#29186429)
Or just include a group name in the commit message. No need for empty merge requests in your history. Since most people use issue tracking systems, just prepend the issue number to each commit message in the group.