GithubHelp home page GithubHelp logo

Comments (3)

carlosmn avatar carlosmn commented on August 17, 2024

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.

from git2go.

c4milo avatar c4milo commented on August 17, 2024

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.

from git2go.

c4milo avatar c4milo commented on August 17, 2024

found it! thanks! https://github.com/carlosmn/libgit2-utils/blob/master/git-archive.py

from git2go.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.