-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Docs inconsistent and contradictory #38
Comments
Sure thing, @jmct. How can I help? We could talk on IRC, by Google Hangout, e-mail, or here, whichever would give you the best resource. |
Hey @jwiegley! Thanks for your fast response. I think I'm already starting to grasp it a bit more. Maybe what we can do is have me post things here when I'm stuck with some part of the library and we can work out the confusion. When I've got the hang of it I'll write up some new docs/examples and submit a pull-request. Yesterday I was trying to use gitlib without a backend, which (of course) resulted in nothing working. So just to start things off, this is where I'm at right now:
I'll try writing some small programs this weekend and see how it goes. Thanks again! |
Yes! You've got it. I think I'm going to discard the Factory notion, and just rely on qualified imports for switching between backends, though. It's a bit too complicated for too little benefit. |
I'm also having the same problem with Git.Tutorial being out of date. Particularly where it references createRepository which appears to be deprecated. |
Yes, it is very out of date. |
What can we do to help? I'm trying to work out how to utilise gitlib so if there's anything I can do to help, I'd be happy too :-) |
@craigem Just help get it down onto paper, so to speak. I'm more than happy to meet with you by whatever medium you desire (Google Hangouts, Skype, IRC, even telephone) and give you a brain dump, if you can turn that dump into written word for others. |
Hey @toothbrush, I did figure it out a bit, but then my PhD duties called and I had to switch away from it. My plan is to use my holiday break in a few weeks to write up some new docs and issue a PR. As for your immediate question: Each backend provides a function that gives you a RepositoryFactory like https://github.com/jwiegley/gitlib/blob/master/gitlib-libgit2/Git/Libgit2.hs#L1502-L1509 for the Libgit2 backend. |
@jmct: thanks, I also managed. All i wanted (embarrassingly enough) was to pull out the HEAD hash. (Off-topic: i was amused to note that you're also an XMonad user on Arch. I will now stop stalking and get back to my own PhD duties too ;) ) |
I would second that having at least a minimal example working in the source code itself would be most helpful. I also was stuck on not figuring out how to get RepositoryFactory instantiated... |
For example, I'd like to know how do I do the equivalent of "git init" on a directory for example. I know now that you can get lgFactory assuming I'm using the gitlib-libgit2 backend but how do I fill out the action parameter? |
For now, please see the |
Hello,
The docs (README and the Git.Tutorial) for the gitlib package, are inconsistent with each other and with the library itself. I'll gladly write some more up-to-date ones, but I'm so confused on even the most basic of things (how to open a repo) that I need some pointers in the right direction.
Any help is appreciated.
Thanks!
The text was updated successfully, but these errors were encountered: