`git add --patch` with `--word-diff`

后端 未结 1 1040
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-13 14:08

git add --patch provides a great interface for reviewing unstaged changes and then staging only the ones that are wanted in the next commit.

Great, except f

1条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-02-13 14:58

    This is sort of possible, as follows:

    git -c interactive.diffFilter="git diff --word-diff --color" add --patch
    

    However, what Git shows you, and what will actually be staged as a result of your interactive commands, will not necessarily match.

    0 讨论(0)
提交回复
热议问题