Closed (fixed)
Project:
Version Control API
Version:
7.x-1.x-dev
Component:
API module
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Mar 2013 at 16:12 UTC
Updated:
26 Apr 2013 at 12:50 UTC
Is it possible to use this module to sync nodes into Git? What I have in mind at the moment is just a minimal demo, where when you edit a basic page, the versions are stored into the master branch of the git repository.
I'm looking around in the code for versioncontrol and versioncontrol_git, and I'm frankly feeling a bit lost. Can someone help me get started?
Comments
Comment #1
marvil07 commentedThis module is about providing a way for drupal to interact with version control systems.
In general we only do read operations with git on versioncontrol_git, so I would say it would be not trivial to try to do that.
Maybe you can use one of the available systems that do that instead of re-doing it, but I would say it is also possible, but with more effort.
Comment #2
holtzermann17 commentedOK, it seems the most relevant system is glip. I also found a related library called Git.php that seems to do the same thing. Maybe if I write some successful integrations with a system like this, that could eventually be merged into the Version Control API? (Anyway, I'll come back and let you know how I get on.)
Comment #3
marvil07 commentedI was referring complete systems under "Wikis, blogs, etc.", the mentioned are libraries. On versioncontrol_git we currently just use git binaries, but there are plans to use also other methods, i.e. see #973890: Create a reposync plugin using libgit2 php binding.
BTW, you did not mention why you wanted to store changes on git, maybe drupal core node revisions are enough for your case.