forked from jelmer/dulwich
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Reorganize the tutorial. This kills some of the duplication and
fixes the testsuite to test all chapters. It also adds a note in the conclusion indicating that the tutorial only covers a part of Dulwich' functionality.
- Loading branch information
Showing
14 changed files
with
143 additions
and
249 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ dist | |
apidocs | ||
*,cover | ||
.testrepository | ||
docs/tutorial/index.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
The Repository | ||
============== | ||
|
||
After this introduction, let's start directly with code:: | ||
|
||
>>> from dulwich.repo import Repo | ||
|
||
The access to a repository is through the Repo object. You can open an | ||
existing repository or you can create a new one. There are two types of Git | ||
repositories: | ||
|
||
Regular Repositories -- They are the ones you create using ``git init`` and | ||
you daily use. They contain a ``.git`` folder. | ||
|
||
Bare Repositories -- There is not ".git" folder. The top-level folder | ||
contains itself the "branches", "hooks"... folders. These are used for | ||
published repositories (mirrors). They do not have a working tree. | ||
|
||
Let's create a folder and turn it into a repository, like ``git init`` would:: | ||
|
||
>>> from os import mkdir | ||
>>> mkdir("myrepo") | ||
>>> repo = Repo.init("myrepo") | ||
>>> repo | ||
<Repo at 'myrepo'> | ||
|
||
You can already look a the structure of the "myrepo/.git" folder, though it | ||
is mostly empty for now. |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Conclusion | ||
========== | ||
|
||
This tutorial currently only covers a small (but important) part of Dulwich. | ||
It still needs to be extended to cover packs, tags, refs, reflogs and network | ||
communication. | ||
|
||
Dulwich is abstracting much of the Git plumbing, so there would be more to | ||
see. | ||
|
||
For now, that's all folks! |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.