Why is split option missing in git add -p?

后端 未结 2 1025
醉梦人生
醉梦人生 2020-12-16 10:23

Trying to split a hunk into smaller ones by git add -p and split option, but entire file appears as one hunk and I can\'t split it.

2条回答
  •  再見小時候
    2020-12-16 11:10

    The reason it's not working is because your hunk is already as small as git will automatically get it. Split only works when there are non-changed lines separating changed lines close enough that git assumes they belong together.

    In order to achieve what you want, you will need to manually edit the patch

提交回复
热议问题