graphjs/groups-v2

add git

Closed this issue · 0 comments

see git branch
uses https://github.com/czproject/git-php

In FileGeneration.php, we should:

if it's NOT a regen
we should git init and git add all files

otherwise
we should git commit -am

I don't think there would be a new file to git add in case of a regen, so we should probably skip that. You may want to check $repo->addAllChanges(); function of git-php whether it does just that (adds any additional file that may have been added since last commit)

then we will push all changes to the repo that's passed by the "git" parameter.