Git Product home page Git Product logo

libgit2-backends's People

Contributors

brianmario avatar carlosmn avatar charypar avatar jacquesg avatar neopallium avatar vmg 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

libgit2-backends's Issues

Missing a License

It would be good to add a LICENSE.md to this repo to clarify what the distribution terms are. I would assume that it is under the same license as https://github.com/libgit2/libgit2, but again clarification from the project is appreciated.

mysql backend question: should oid = sha1(data) ?

Hello, libgit2 team

First, great project!

I have a question regarding the mysql backend:
This is the code to create a blob from buffer, it's a string.

const char str[] = "Hello, World!";
git_blob_create_frombuffer(&oid, mysql_odb_backend->repo, str, strlen(str));

The blob successfully inserted to the odb table, the uncompress(data) is the string content

But I don't understand the oid column value, as according to git concept, it's sha1 value of the data content, please correct me if I'm wrong.

So I did a validation

select  lower(hex(oid)),
        type, 
        size, 
        convert(uncompress(data),char(100)),
        sha1(uncompress(data))
from git2_odb

result:

lower(hex(oid)) type size convert(uncompress(data),char(100)) sha1(uncompress(data))
b45ef6fec89518d314f546fd6c3025367b721684 3 13 Hello, World! 0a0a9f2a6772942557ab5355d76af442f8f65e01

I found that the hex oid value is not the same as sha1 data, is this correct? or I'm doing it in the wrong way?

Thank you!

Best Regards,
Jerry

mysql backend update

Hi!

The mysql backend seems quite out of date.
Are you considering updating it? If not, do you know of any other projects doing the same thing?

Thanks in advance

Build failure

I'm on OSX Yosemite and I can't build the memcached backend.

Here are the steps I'm executing:

brew install libmemcached
brew install libgit2
git clone https://github.com/libgit2/libgit2-backends.git
cd libgit2-backends
cmake memcached
cmake --build .

Here is partial output from the build step:

$ cmake --build .
Scanning dependencies of target git2-memcached
[100%] Building C object CMakeFiles/git2-memcached.dir/memcached.c.o
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:34:18: error: field has incomplete type 'git_odb_backend' (aka 'struct git_odb_backend')
        git_odb_backend parent;
                        ^
/usr/local/include/git2/types.h:84:16: note: forward declaration of 'struct git_odb_backend'
typedef struct git_odb_backend git_odb_backend;
               ^
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:81:10: error: use of undeclared identifier 'GIT_ENOMEM'
                return GIT_ENOMEM;
                       ^
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:85:10: error: use of undeclared identifier 'GIT_ENOMEM'
                return GIT_ENOMEM;
                       ^
/Users/stinky/Downloads/libgit2-backends/memcached/memcached.c:105:12: error: use of undeclared identifier 'GIT_SUCCESS'
                status = GIT_SUCCESS;
...

It appears that the compiler can't find libgit2, but cmake seemed to find it just fine in the cmake memcached step.

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.