让git rerere自动将文件标记为已解决? [英] Have git rerere automatically mark files as resolved?
问题描述
我使用git rerere,它很有用,但有一个问题:当它自动解析文件时,它不会将其标记为已解析(例如,使用git add)。所以如果我运行'git mergetool',它会打开文件,就好像它仍然存在所有的冲突。
到目前为止,我已经创建了一个可以调用的小型shell脚本,它可以扫描标记为冲突标记冲突的所有文件(例如 有没有更好的方法来做到这一点?一些标志git rerere我错过了? 也许一个 设置为true时, 注意:既然Git1.7.0, I'm using git rerere, and it is useful, but there is one problem: When it automatically resolves a file, it does not mark it as resolved (eg with git add). So if I run 'git mergetool', it opens up the file as if it still has all the conflicts in it. So far, I've made a small shell script which I can call, which scans all files marked as conflicted for conflict markers (eg Is there a better way of doing this? Some flag to git rerere I missed? Maybe a
When set to true, Note: since Git1.7.0, "
这篇关于让git rerere自动将文件标记为已解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!> ;>>>>>>< / code>),并且在它们没有的时候调用它们。
git config
设置可以提供帮助:
rerere.autoupdate
git-rerere
在使用先前记录的分辨率彻底解决冲突后,使用结果内容更新索引。
默认为false。
git rerere
had rerere.autoupdate
配置,但没有办法从命令行对其进行反制;
- no-rerere-autoupdate
赋予 merge
, revert
等修正了这个问题。
>>>>>>>
), and calls git-add on them if they have none. git config
setting can help:rerere.autoupdate
git-rerere
updates the index with the resulting contents after it cleanly resolves conflicts using previously recorded resolution.
Defaults to false.
git rerere
" had rerere.autoupdate
configuration but there was no way to countermand it from the command line;
--no-rerere-autoupdate
option given to "merge
", "revert
", etc. fixes this.