Skip to content

Conversation

bzz
Copy link
Contributor

@bzz bzz commented Feb 19, 2018

Adds one more way of embedding Git in your application using https://www.dulwich.io project.

Dulwich is independent Python implementation of the Git file formats and protocols.

As it touches the same files, it's based on/includes a commit from #998 and so will be rebased on top of it. Only ee2d9dd needs to be reviewed in here.

@ben
Copy link
Member

ben commented Feb 20, 2018

Would you mind waiting until #998 merges and rebasing this? I'd like to review it on its own, and it's going to have a small merge conflict.

@bzz
Copy link
Contributor Author

bzz commented Mar 7, 2018

Absolutely. Thank you for a kind guidance.

@bzz bzz force-pushed the embedding/add-dulwich branch 2 times, most recently from 339b917 to 8cf5826 Compare March 19, 2018 08:10
Signed-off-by: Alexander Bezzubov <bzz@apache.org>
@bzz bzz force-pushed the embedding/add-dulwich branch from 8cf5826 to 93302a1 Compare March 19, 2018 08:11
@bzz
Copy link
Contributor Author

bzz commented Mar 19, 2018

@ben small doc on pure-python library was rebased, updated and is ready for another pass

Copy link
Member

@ben ben left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a couple of tiny niggles.

@@ -0,0 +1,44 @@
=== Dulwich

(((Dulwich)))((("Python")))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting. Does this index entry require the quotes?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not know, to be hones, I just copied it from libgit2 example.
Digging deeper, #471 seems to be a reason for those quotes.

Will be happy to remove those if you think there might be some side-effects, but I guess same logic should be applicable for go-git as well.

Let me know if you want me to remove both in this PR

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Alright, let's maybe clean them up in a separate PR then.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 #1096 created

[source, python]
-----
from dulwich.repo import Repo
r = Repo('.')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind renaming this variable to current_repo or something similar? And maybe c should be called commit.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right now it's just 1-to-1 copy from https://www.dulwich.io/docs/#getting-started

Please, let me know if you still think it should be change and I will be happy to do so.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm. Should we make this example more readable, or easier to update? Let's stick with Dulwich's example then.

@ben ben merged commit 1aeab3f into progit:master Jun 28, 2018
@bzz bzz deleted the embedding/add-dulwich branch July 24, 2018 15:45
@aollier aollier added the translation backport Tags a PR for translators to backport in their own repo label Mar 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
translation backport Tags a PR for translators to backport in their own repo
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants