Skip to content
This repository was archived by the owner on Sep 11, 2020. It is now read-only.

add and commit support #256

Closed
dtmistry opened this issue Feb 6, 2017 · 7 comments
Closed

add and commit support #256

dtmistry opened this issue Feb 6, 2017 · 7 comments
Assignees

Comments

@dtmistry
Copy link

dtmistry commented Feb 6, 2017

Thank you for this awesome library!! I apologize if this question is already answered.

I see there is support for push using go-git. Is it in the roadmap to support other porcelain commands like 'add' or 'push'?

Also, is there current support to update index or write tree?

I'm trying to use go-git with the memory storer in a tool that updates an existing repository.

@thefallentree
Copy link

+1 , to do what git add/commit does it pretty heavy-lifting, I think we can start with a simple CreateCommitWithBlob() sort of thing on Repository struct first.

@nobuhito
Copy link

👍

@kilpatty
Copy link

kilpatty commented Apr 5, 2017

I would really love this feature as it would allow me to bundle my application with no external dependencies. Anything I can do to help here? I have some time this weekend, and would love to crank some of this out.

@mcuadros
Copy link
Contributor

mcuadros commented Apr 5, 2017

@Skilgarriff I invite you to take a look to the internals, but is not one weekend task. Happy to happy to help you with this tasks.

The main thing required to start, is implement Worktree.Status (git status) based on merkletrie to compare the file system tree, staging area and HEAD

Having a proper status, will be easy implement git add and git commit, those methods aren't more than wiring functions between other components

@mcuadros
Copy link
Contributor

mcuadros commented Apr 8, 2017

@Skilgarriff I am doing myself the implementation of status. I hope you didn't started

@kilpatty
Copy link

kilpatty commented Apr 8, 2017

@mcuadros I have not started yet, I was planning on checking it out today. Can I help at all? Or will you ping here when that is completed and we could begin looking at commit and add

@mcuadros
Copy link
Contributor

mcuadros commented Apr 8, 2017

I am opening a PR a soon as I have something, to let you see what is being implemented

You can work in the add now if you want, take a look how create objects, is not very evolved and maybe you will need to do some PRs

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Projects
None yet
Development

No branches or pull requests

5 participants