Code Monkey home page Code Monkey logo

php-stream-wrapper-for-git's People

Contributors

alnutile avatar dekokun avatar donoftime avatar echernyavskiy avatar ericduran avatar jsjohns avatar mazen avatar mkaufmaner avatar nusphere avatar sgehrig avatar toma-r avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

php-stream-wrapper-for-git's Issues

Add support for repository-specific paths to the stream wrapper

Extend the stream wrapper to support registering repositories with keys to allow accessing these repositories using repository-specific paths.

StreamWrapper::getRepositoryRegistry()->addRepositories(
    array(
        'repo1' => Repository::open('/path/to/repository/1', '/usr/bin/git', false),
        'repo2' => Repository::open('/path/to/repository/2', '/usr/bin/git', false),
    )
);
$content1 = file_get_contents('git://repo1/file_0.txt');
$content2 = file_get_contents('git://repo2/file_0.txt');

The legacy global path support must not be affected by the changes.

Implementation of Push

I noticed that there is no implementation of git push.

I added my own method to the repository and binary classes but interestingly enough I got an error:

'Cannot push "/current/path" [Pushing to ssh://[email protected]/~/example.git
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-with-mic,password).
fatal: The remote end hung up unexpectedly]

I was wondering if this is why push was never implemented. Can you provide any information about this or the error?

Thank you for any assistance.

Getting extra data/filtered from getLog

Hey, I'm looking at using your project in a big project and have a few Git-specific tweaks we'll be needing. As far as I can tell, there aren't any good analogs in Subversion for them (at least, without some fairly involved/inefficient scripting to adapt it).

The big thing I'll be modifying up front will be getLog() to add some extra options for showing only the history of certain files, showing incremental changes (and/or diffs) at certain commits, etc.

Normally, I'd just adapt all the interfaces and have the incompatible ones either throw exceptions or return failures when they are incapable of those operations. Does that paradigm work for you and/or this project? Or should I introduce it in a different way such as just tacking in a new function?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.