Skip to content

Questions on how to use GitPython #377

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

Closed
jgeerds opened this issue Jan 26, 2016 · 1 comment
Closed

Questions on how to use GitPython #377

jgeerds opened this issue Jan 26, 2016 · 1 comment

Comments

@jgeerds
Copy link

jgeerds commented Jan 26, 2016

I'm planning to use GitPython as a database for my next project and have some further questions that your documentation doesn't cover. The idea is to have a bare repository with a hierarchical structure (using git trees) and UUID named blobs for the data.

  1. Is it possible to commit stream data into a bare repository? The documentation states:
Our index implementation allows to stream date into the index, 
which is useful for bare repositories that do not have a working tree.

Is there an example for that?

  1. What is the simplest workflow for creating new Blob objects?

The whole GitPython tutorial is rather high-level and just show how to work with existing Blob objects. But what is the preferred way to create new ones? What is the first step to get new data into the git store?

@Byron
Copy link
Member

Byron commented Jan 30, 2016

For questions, I recommend using stackoverflow along with the GitPython tag, as you will obtain answers much faster, and from a bigger audience.

1) You might find this unit-test helpful. It's likely you will find examples for all usages of the git index in there as well.

2) Please refer to the unit-tests for examples on how to stream into a repository, and obtain index entries.

@Byron Byron closed this as completed Jan 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants