|
|
|
|
|
by doritosfan84
296 days ago
|
|
IME, the benefit is ease of branching paths. For example, if I'm working on a feature I can do something like this: - Put tests in one commit
- Tell Claude to come up with several approaches where I'm not exactly sure what the best might be
- Put approach 1 into a commit, 2 into a separate one, etc. These approach commits all live side by side instead of stacked on top of each other.
- At any point I can create a new commit that is the combination of approach 1 along with the tests and iterate from there
- When doing that, I can absorb any changes made into the appropriate commit. Possibilities kinda open up from there. Maybe intead of fully separate approaches, you just want to break the change into parallel pieces (e.g. you're not sure all of your changes will be needed as requirements change). Then I can create a "super" commit that's the combination of all the other commits even though they're not stacked. That means I can conditionally choose which commits I want to include into my "super" commit too. |
|