Skip to content

Implement packed-file reading in git-fs-db. #38

Open

Description

@tsgautier

trying out the read method, I find I can read a new object entry that exists as an unpacked object in the .git/objects directory.

but I get an ENOENT on an object hash that does not exist in the .git/objects directory if I try to read an older file that I am pretty sure is sitting in a packed object file.

just wondering if that's on the todo list - if so I'll just drop my experiments for now until it's supported - or maybe you need some help there I could try to support it?


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

Activity

  1. creationix commented on Sep 11, 2013

    @creationix
    Owner

    Yes it's on the TODO list, but not scheduled yet. Which of the 4 schedules milestones do you feel this fits in?

    Keep in mind that I won't have packfile writing of any kind in milestone 1, but perhaps reading of existing git repos could fit in there. I just don't want to block the other work on something most people won't need.

  2. tsgautier commented on Sep 12, 2013

    @tsgautier
    Author

    I haven't looked at the milestones. Where can I find them? For me it's a showstopper because I want to read files out of a git repo, and for any arbitrary git repo that pretty much means reading from pack files is a requirement.

    I don't need to write to them, so for my use case, it's ok to do read first and then write.

  3. tsgautier commented on Sep 12, 2013

    @tsgautier
    Author

    Ah, yes, I see, I found the milestones. Well, for me, I would prefer to have the ability to read data from a git repository in the first milestone, but that's my use case. Not sure specifically what use cases you are targeting.

    On a practical note, proving that you can read data before trying to write to it seems like a logical way to divide and conquer and has the side benefit of addressing my use case first ;-)

  4. chrisdickinson commented on Sep 12, 2013

    @chrisdickinson

    @tsgautier if you're looking for a simple read-only interface to git repos containing pack files in node, you might try git-fs-repo in the meantime until this feature is in js-git.

    @creationix this seems like it might be a milestone 1 goal, as it'll be a pretty common use case.

  5. creationix commented on Sep 12, 2013

    @creationix
    Owner

    Ok, I'll tack it to the end of my milestone 1 tasks. I'm hoping to get that milestone done this week before I travel to StrangeLoop, but it's getting pretty close. Maybe I'll finish at the conference or while traveling.

  6. tsgautier commented on Sep 12, 2013

    @tsgautier
    Author

    @chrisdickinson thanks for the tip. I'll take a look. @creationix sounds good. Looking forward to it. Say hello to Alex Miller for me if you see him at Strange Loop.

  7. creationix commented on Nov 22, 2013

    @creationix
    Owner

    Sorry for delaying this issue. I think it will be the last issue in milestone #2 after I complete all the network stuff. With this and the network stuff done, js-git will be feature complete enough to be the backend for things like howtonode.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions