Re: What's in git.git
From: Junio C Hamano <hidden>
Date: 2016-06-15 22:42:18
Tony Luck [off-list ref] writes:
So is there an easy way in git to take the series of commits from a topic branch, make a new branch with all those commits as just one commit ... with an open editor on the concatenated commit comments (If there were just typo fixes the comment from the first commit would apply, but sometimes the follow-on commits would have substantive changes).
I do not have a script to do so but my guess is that would be a 20-30 line shell script. Use cherry to find which ones to pick, run diff-tree on them to extract patches, run apply --index on each of them in turn, and dump "git log master..topic" to your editor and you are done. The editor would have the commit log to be edited while working tree and the index would have a ready-to-commit tree with all the changes applied.