Book a Demo

Author Topic: GIT version control support  (Read 4382 times)

Karl W

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
GIT version control support
« on: January 09, 2014, 07:22:54 am »
Seems like GIT support is mandatory nowadays.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: GIT version control support
« Reply #1 on: January 09, 2014, 08:39:19 am »
Search the forum for a number of threads discussing why GIT is not a good fit for EA. I think it all boils down to EA requiring exclusive locks, which a DVCS like GIT doesn't provide.
The Sparx Team
[email protected]

Karl W

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: GIT version control support
« Reply #2 on: January 09, 2014, 09:11:18 am »
I did a forums search on GIT. Nothing was returned.
Actually, before I am posting this it returned our two messages.

Locking is not a problem with GIT, as the repository is local to the client PC. You can easily lock the file(s) as long as you have the model open in EA.

The only time it might be an issue is when you are pulling from another repository while the XMI files are in use. But this is the same problem with any other software that locks files.

I think the simplest solution would be for EA to use XMI instead of .eap files as storage. Then GIT support is automatic, as all GIT does is, track files. GIT does not require check-in/check-out logic. No add-in would be needed, as there are GIT tools that can be used external to EA.

In principle this can be done with .eap files as well, but diffs, compares and merges are so much easier with text files like XMI.

KP

  • EA Administrator
  • EA Expert
  • *****
  • Posts: 2919
  • Karma: +55/-3
    • View Profile
Re: GIT version control support
« Reply #3 on: January 09, 2014, 09:37:03 am »
You need to use the search button on the left:
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1361363945
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1337730997
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1376688576
http://www.sparxsystems.com/cgi-bin/yabb/YaBB.cgi?num=1357703904

Most people use version control with shared repositories rather than EAP files, and that's when exclusive locking is required. Diffs, compares and merges are absolutely not easy with XMI.
The Sparx Team
[email protected]

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: GIT version control support
« Reply #4 on: January 09, 2014, 10:00:18 am »
OT: Why in heaven can't this search issue be fixed? It will take less than 10 minutes to remove this "Search the forum". And it will save a lot of people a lot of grief. Even us having to explain every time how to use this search :(

q.
« Last Edit: January 09, 2014, 10:00:32 am by qwerty »

Karl W

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: GIT version control support
« Reply #5 on: January 09, 2014, 10:29:59 am »
Quote
Most people use version control with shared repositories rather than EAP files, and that's when exclusive locking is required. Diffs, compares and merges are absolutely not easy with XMI.

I use GIT with shared repositories. But these are not where you commit your changes to. It seems like there is a misunderstanding about how GIT works.

In any case, just wanted to make sure this is heard, regardless of the outcome.