Search code examples
gitgit-checkoutgit-stashgit-addgit-patch

Can git break up changes by default?


I like to use the -p flag on several git commands, such as add, reset, checkout, and stash. But git groups somewhat contiguous changes together in the same hunk. I know that s breaks up the changes but is there another option I could pass to have git break them up by default wherever possible?


Solution

  • There are no command line options to accomplish what you want, nor is there a config option. If there were a config option, I would expect to see it in the git-config documentation alongside the interactive.singlekey option.