代码之家  ›  专栏  ›  技术社区  ›  Stefan Kendall

可以忽略注释/排除修订的Diff工具?

  •  1
  • Stefan Kendall  · 技术社区  · 15 年前

    版本1。

    This is a sentence
    Here is an address
    What's going on here
    

    版本2。

    1 This is a sentence
    2 Here is an address
    3 What's going on here
    

    版本3。

    //added periods
    1 This is a sentence.
    2 Here is an address.
    3 What's going on here.
    

    是否有一个用于windows的diff工具可以查看版本1、排除版本2和版本3,并生成只显示句点的视觉diff?我一直在做简单的大规模重构,它真的把森林从树上遮住了。

    2 回复  |  直到 15 年前
        1
  •  2
  •   Will A    15 年前

        2
  •  0
  •   hajamie    14 年前

    -I RE--ignore matching lines=重新忽略所有行的更改 匹配RE。

    diff x y -I '^//'