Menu

#578 consider built-in support for GIT

nextrelease
open
nobody
None
5
2022-03-10
2017-04-19
No

It would be really nice to provide a little source control into the Jython editor. It would be nice to see differences in scripts as they are made. Science questions can be asked more easily, like if I make this change to how a parameter is calculated, what is the change in the result? I am in the middle of refactoring a slow matrix multiply routine, and I'm forced to make a copy of the code so I can compare and get back to where things were when bugs show up.

JGit is what Eclipse uses, and it might be well-suited. Git is nice because anyone can start a repository, anywhere. There's no need for a webserver as is the case with SVN, plus there are the more obvious features like being able to fork another reposity and keep track of changes between it and other Git instances.

Discussion

  • K Paulson

    K Paulson - 2017-04-19

    I second this. I have been meaning to ask you how easy it would be to integrate git support into the script editor.

     
  • Jeremy Faden

    Jeremy Faden - 2017-04-19

    I don't think it'll be easy, depending on what other codes are running around out there. It's possible someone has done the JSyntaxPane+JGit already, which would make it fairly easy. First, I just need to figure out how capable JGit is, and if it has all the operations we would want. Then it would probably be trying to figure out how to render changes in the editor. I'd try to match Netbeans as much as possible, and I'm attaching a screenshot.

     
  • Jeremy Faden

    Jeremy Faden - 2017-04-20

    Dan meantioned that Netbeans has a standard API that makes all the SVN/Git systems look similar. This could be integrated instead of just Git.

     
  • Jeremy Faden

    Jeremy Faden - 2017-06-12

    Ticket moved from /p/autoplot/bugs/1813/

     
  • Jeremy Faden

    Jeremy Faden - 2019-12-17

    Most of this was completed this year. In fact, I'd forgotten this had been ID'd as a task, and I'm sure there's a another redundant ticket.

     
  • Jeremy Faden

    Jeremy Faden - 2022-03-10

    Macs and Linux have git at the command line, and this is probably the case for Windows too. I've made a bunch of scripts which can be used with the editor to provide these actions. See https://github.com/autoplot/dev/blob/master/demos/tools/editor/git-actions.xml .