patrikf / glip Goto Github PK
View Code? Open in Web Editor NEWgit library in PHP
Home Page: http://fimml.at/glip
License: GNU General Public License v2.0
git library in PHP
Home Page: http://fimml.at/glip
License: GNU General Public License v2.0
Hey, i found that you use usort function for sorting nodes within Git Tree object, but as said in PHP Manual, usort will loose array keys, and You will no longer be able to get nodes by they're key. You can use uasort function instead, to keep array keys.
Best Regards,
canni
Hi folks!
It's been a long while since I last touched glip, I no longer have use for the code myself and hence no interest in developing it any further. However, I see continued activity in my Github feed; there's a few open pull requests, lots of people have forked and made a few changes themselves.
I would like to offer official maintainership to anyone who feels up to the task. It would be useful to consolidate the additions that people made, possibly add a unit-testing suite, and have a vision for the API to evolve. Anyone interested?
Please respond here or by email to [email protected].
Thanks,
Patrik
glip doesn't distinguish between a normal directory and a git submodule. If you make a call to GitTree::listRecursive() on a repo that contains a git submodule then glip will error out because the git sumodule directory is not actually part of the containing repo. The GitTree::listRecursive() call errors out like:
Uncaught exception 'Exception' with message 'object not found: <sha of git submodule>'
glip attempts to traverse the git sumodule directory, but it's not part of the current repo so it cannot find the object (the object does exist, but it's in the git submodule's repo).
Here's a nice tutorial on submodule usage:
http://book.git-scm.com/5_submodules.html
If you follow that example and try to listRecursive the master repo tree you will get this error.
glip needs to recognise that a directory is actually a git submodule and not part of the repo specified when the initial Git instance was created. glip should then not attempt to traverse that directory. The fact that a directory is actually a Git submodule could be reflected in the return value of GitTree::listRecursive() so that a calling function doesn't then blindly try to make a getObject() call directly on a git submodule.
I've forked the code and will submit a fix I've come up with soon. glip has been great fun to play around with!
Hello all,
Can this be used to make a "git pull" on a server without having git cli ?
How can we do that? I didn't understand with the doc
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.