问题
I am working in the SoapUI(ReadyAPI 1.3.x) composite project hosted in bitbucket.
For the code management I use SourceTree.
When ever I pulled a new project and plug it in to soapUI, the first time the project gets saved, the source tree shows as allmost all the files chaged.
When I look at the file changes, I don't see a visible content change.
Ex: [1] I have few image files in my test suite, the source tree shows the files are removed and added back to the same location (Basically they show as moved, obviously to the same location).
[2] xml test cases also shown as updated , but basically the content remains the same.
It looks like the soaUI changes the file binaries, and that changes is picked up by the source tree.
This is kind f annoying, I tried adding a .gitattributes the following config for every file type.
*.xml diff=tex
But no luck...
Does anyone have any clue ....?
回答1:
Make sure those difference are not end-of-line (eol) related (lf vs. cflf).
If they are, check if you have a config like core.autocrlf
set to true.
If, so, set it to false, and clone your repo again, to see if the issue persists.
Once you have identified specific files which requires eol management, list them in a .gitattributes file, with core.eol directives.
Note: I don't know about 'tex
' as a valid config value.
*.atype -text
That would prevent .atype
files from being normalized regardless of their content.
来源:https://stackoverflow.com/questions/32216692/source-tree-shows-loads-of-files-changed-when-soapui-saves-the-project