English 中文(简体)
git 合并:过滤文档,以避免sil冲突(如白空间或案件变化)
原标题:git merge: filter files to avoid silly conflicts (like whitespace or case changes)

目前,灰色混凝土的混杂状态非常复杂,我有许多冲突。 冲突涉及两个阿达源档案。

I would like to make a merge that would ignore both whitespace changes and case changes (as the Ada language is case insensitive). Do you know if there is a way to tell git to ignore some kind of changes before a merge ?

我的解决方案是,在合并之前,在两个分支部门都使用“GNAT”大量印刷,但如果在盖特有共同的解决办法,这将帮助我。

问题回答

http://www.kernel.org/pub/software/scm/git/docs/RelNotes/1.7.4.txt”rel=“nofollow”

* The "recursive" strategy also learned to ignore various whitespace changes; the most notable is -Xignore-space-at-eol.

我不知道是否有战略忽视案件变化,尽管如此

关于案件问题,在案件合并期间,对不敏感的非洲顾问办存在问题,因此,这个问题与2.0.1+格特(2014年6月25日)是一回事。

See commit ae352c7f37ef2098e03ee86bc7fd75b210b17683 by David Turner (dturner-tw)

merge-recursive.c: fix case-changing merge bug

On a case-insensitive filesystem, when merging, a file would be wrongly deleted from the working tree if an incoming commit had renamed it changing only its case.
When merging a rename, the file with the old name would be deleted -- but since the filesystem considers the old name to be the same as the new name, the new file would in fact be deleted.

我们避免这样做,不要删除在零阶段指数中包含一例的档案。





相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签