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

marvil07’s picture

Status: Active » Fixed

Is it possible to use this module to sync nodes into Git?

This 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.

holtzermann17’s picture

OK, 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.)

marvil07’s picture

I 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.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.