Way to have git only recognize a file as changed if more than a specific set of lines change?

穿精又带淫゛_ 提交于 2019-12-06 03:33:19
VonC

I would recommend:

The idea is for that script to detect, on git add:

  • the content of a 'SomeHeader' property file
  • if the copy of that file has changed in way you need to keep (in which case you overwrite the versioned file with the content of that copy)
  • if the copy of that file has not changed significantly, in which case, you don't modify the actual property file.

Note that the "keep a copy" part can be automated also by a content filter driver, with a smudge script activated automatically on git checkout.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!