Git: remove leading plus/minus from lines in diff

后端 未结 4 1803
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-12-23 13:26

My question is rather simple, though I have had no luck finding an answer.

I\'d like to remove the leading plus/minus symbols from each line in git diff

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-23 14:09

    If I may answer my own question, I ultimately settled on using a tool called diff-so-fancy. It not only strips the +/- from my diffs, but it also streamlines the file headers and highlights the changes within each line.

提交回复
热议问题