jgraph / drawio

draw.io is a JavaScript, client-side editor for general diagramming.
https://www.drawio.com
Apache License 2.0
39.54k stars 7.4k forks source link

XML format for better version control #4461

Open tigerinus opened 2 years ago

tigerinus commented 2 years ago

Is your feature request related to a problem? Please describe. I version control all *.drawio.xml in git. What frustrates me is that just saving without changing anything the modified attribute in XML is changed, and subsequently causes a change in local git.

Describe the solution you'd like It'd be nice to provide an option to strip information like modified out of the XML file to be version controlled.

Describe alternatives you've considered Manually removing the attribute, but it's tedious.

Additional context If you open a code in IDE, saving without changing anything wouldn't cause a change in git.

stale[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. See the FAQ for more information.

cameel commented 1 year ago

It would be great to make the format more git-friendly.

JeroenOortwijn commented 8 months ago

Another issue is that the XML attributes parent and vertex are sometimes swapping places, causing unnecessary changes and added noise: image