|
|
|
|
|
by CuriousCosmic
935 days ago
|
|
I'm confused what you mean? If you are talking about refactoring prior to merging into the tree? then no it's not a waste of time. That's the intended workflow. You make your changes to the commits or add new commits in between using rebase. This is how all the development for linux is done. If you are talking about after they are merged into the mainline? That's also not a waste of time. You don't have to go back and change those commits because they are now finalised and your iterative refactoring can be done via small one off patches gradually merged into main, a series of large patches merged into main, or a set of patch series all merged into an incubation branch that is kept up with main and eventually merged back into main once the refactor has made sufficient progress to take over. |
|
1. I open a branch.
2. I start coding.
3. During coding I do various commits.
4. I realise I need to refactor/rethink something, I do more commits, overriding the code/ideas of previous commits.
5. Then I finally put it up for code review. But in such case there's no point in going through all commits, since a lot of that gets changed anyhow.
6. Usually I would squash everything into a single commit and merge after doing that. Because a lot of my commits would've been pointless anyway.
What is the suggestion exactly?