V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
abujj
V2EX  ›  问与答

mac 如何监控一个 plist 文件内容的更改 历史和 diff 对比

  •  
  •   abujj · May 12, 2022 · 1046 views
    This topic created in 1460 days ago, the information mentioned may be changed or developed.

    不但能监控文件的内容更改了几次, 更改的地方, 还最好有类似 git diff 一样,能对比

    监控的文件是 plist 文件

    有这样的软件吗

    2 replies    2022-05-13 21:22:55 +08:00
    ysc3839
        1
    ysc3839  
       May 13, 2022
    用不同工具组合吧,一个工具检测文件变动,调用 plutil dump 出 xml 格式的 plist ,然后再用一个工具对比历史版本
    abujj
        2
    abujj  
    OP
       May 13, 2022
    @ysc3839
    写了一个简单的 watch, 监控文件变化,然后拷贝重命名成 新的文件, plutil -convert xml1 成 xml. 然后 diff 工具一个一个分别对比

    貌似没啥好工具和办法
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2645 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 16:04 · PVG 00:04 · LAX 09:04 · JFK 12:04
    ♥ Do have faith in what you're doing.