git-php | Library for work with Git repositories in PHP | Build Tool library
kandi X-RAY | git-php Summary
kandi X-RAY | git-php Summary
[Tests Status] Library for work with Git repository in PHP.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Process command arguments .
- Get information about a commit .
- Clone a repository .
- Extract repository name from url
- Convert the output .
- Format the command as text .
- Set result .
- Get runner result .
- Validate a given ID .
- Get the author date .
git-php Key Features
git-php Examples and Code Snippets
Community Discussions
Trending Discussions on git-php
QUESTION
I have a LOT ( almost 300 ) old SVN repositories to migrate to git using git2svn.
After considering GOLANG and PYTHON, I finally decided that the easiest way is to use PHP . Might be a bad questionable decision, but it's seemed easy.
So, after 15 minutes , I did have a script that is more or less running ok in tests . Ugly script , but it is a one-timer.
The problem is that the process takes a lot of time , even for simple almost empty repos is can take 30sec. and even a minute. On big ones - even 10min - so before taking it into production, I would like to have some feedback mechanism - so I can actually see what is going on .
..as of now ,the script does output the command feedback like so :
...ANSWER
Answered 2017-Jan-02 at 03:36I suggest instead running a script or program in the background that runs the command and then updates a record in a database, you could then use AJAX or whatever to poll the server for record changes. This allows a nice environment for the user.
The column in the database table could be named something like "finished" and once that boolean is true then you know its complete and the output could be stored in the database.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install git-php
for Linux - https://git-scm.com/download/linux
for Windows - https://git-scm.com/download/win
for others - https://git-scm.com/downloads
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page