Skip to content
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

Are there any plans to implement git-archive? #100

Closed
c4milo opened this issue Jun 15, 2014 · 3 comments
Closed

Are there any plans to implement git-archive? #100

c4milo opened this issue Jun 15, 2014 · 3 comments

Comments

@c4milo
Copy link

c4milo commented Jun 15, 2014

No description provided.

@carlosmn
Copy link
Member

git-archive is a tool that's bundled with the git tool. The only relationship to Git is that it uses it as the source of data, but there is no logic in it that's related to Git.

Anything interesting in such a tool are in the tarball/zipfile writing functions, and that's not something that libgit2 should ever do. The Go standard library has "archive/tar", so it boils down to getting your entries (e.g. by reading a tree into an index) and iterating over them, implementing what you want out of such a tool.

@c4milo
Copy link
Author

c4milo commented Jun 17, 2014

Makes sense. In my case it is a bare repo from which I need to get the repo content. This will normally be done through git archive. Unfortunately, I'm not very familiar with git internals. If you could give me some hints about how to get repo content out of a bare repo, I would appreciate it.

@c4milo
Copy link
Author

c4milo commented Jun 17, 2014

@c4milo c4milo closed this as completed Jun 17, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants