librelist archives

« back to archive

libgit2 Questions

libgit2 Questions

From:
Chris Bisnett
Date:
2011-12-03 @ 00:48
I've been looking into using libgit2 for a project that I'm working on
and I have a few questions.

I saw that currently there was no support for pushing changes to a
remote repository and I was wondering if there were any plans for
adding push support and when it could be expected.  Also I found the
fetch example but I didn't know what was required to turn that into a
clone and pull (with merge).

I really like the library and would like to continue using it but I
will eventually need push and pull support.  I don't have experience
with git internals but I would be willing to try and add the features
if someone could point me in the right direction.

Thanks for all your hard work.

- Chris

Re: [libgit2] libgit2 Questions

From:
Vicent Marti
Date:
2011-12-03 @ 17:25
Hey Chris,

I'm glad you've decided to give libgit2 a go. Push support is our very
very next priority, but work on it hasn't started yet. Regarding pull,
all the hard parts have been implemented. A standard clone is a pretty
straightforward operation, the steps are:

1. Initialize a repository (git_repository_init)
2. Set up the origin remote (remotes API)
3. Perform the fetch (remotes again)
4. Checkout the files to the working directory (not implemented yet)

As you can see, there's a little bit of work to be done. If you're
willing to delve into Git internals and throw us a hand, I can guide
you on what we need: right now that'd be `gitattributes` support, so
we can effectively perform checkout and diffs taking into account file
attributes.

Cheers,
Vicent

On Sat, Dec 3, 2011 at 1:48 AM, Chris Bisnett <cbisnett@gmail.com> wrote:
> I've been looking into using libgit2 for a project that I'm working on
> and I have a few questions.
>
> I saw that currently there was no support for pushing changes to a
> remote repository and I was wondering if there were any plans for
> adding push support and when it could be expected.  Also I found the
> fetch example but I didn't know what was required to turn that into a
> clone and pull (with merge).
>
> I really like the library and would like to continue using it but I
> will eventually need push and pull support.  I don't have experience
> with git internals but I would be willing to try and add the features
> if someone could point me in the right direction.
>
> Thanks for all your hard work.
>
> - Chris

Re: [libgit2] libgit2 Questions

From:
Jonathan \"Duke\" Leto
Date:
2011-12-05 @ 15:51
Howdy,

> As you can see, there's a little bit of work to be done. If you're
> willing to delve into Git internals and throw us a hand, I can guide
> you on what we need: right now that'd be `gitattributes` support, so
> we can effectively perform checkout and diffs taking into account file
> attributes.

I would like to hack on gitattributes support. Is there a Github issue? What is
the simplest unit of functionality that can be implemented?

Duke

-- 
Jonathan "Duke" Leto <jonathan@leto.net>
Leto Labs LLC
209.691.DUKE // http://labs.leto.net
NOTE: Personal email is only checked twice a day at 10am/2pm PST,
please call/text for time-sensitive matters.

Re: [libgit2] libgit2 Questions

From:
Vicent Marti
Date:
2011-12-07 @ 15:22
Hey Jonathan,

sorry, I overlooked this email. I've opened a TODO issue now:

https://github.com/libgit2/libgit2/issues/508

Please feel free to ask any questions there.

Cheers,
Vicent

On Mon, Dec 5, 2011 at 4:51 PM, Jonathan "Duke" Leto <jonathan@leto.net> wrote:
> Howdy,
>
>> As you can see, there's a little bit of work to be done. If you're
>> willing to delve into Git internals and throw us a hand, I can guide
>> you on what we need: right now that'd be `gitattributes` support, so
>> we can effectively perform checkout and diffs taking into account file
>> attributes.
>
> I would like to hack on gitattributes support. Is there a Github issue? What is
> the simplest unit of functionality that can be implemented?
>
> Duke
>
> --
> Jonathan "Duke" Leto <jonathan@leto.net>
> Leto Labs LLC
> 209.691.DUKE // http://labs.leto.net
> NOTE: Personal email is only checked twice a day at 10am/2pm PST,
> please call/text for time-sensitive matters.