Skip to content

Commit 66c8cea

Browse files
Sherry520networm
authored andcommitted
翻译附录B-Dulwich
1 parent fcffa56 commit 66c8cea

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

book/B-embedding-git/sections/dulwich.asc

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
=== Dulwich
22

33
(((Dulwich)))(((Python)))
4-
There is also a pure-Python Git implementation - Dulwich.
5-
The project is hosted under https://www.dulwich.io/
6-
It aims to provide an interface to git repositories (both local and remote) that doesn't call out to git directly but instead uses pure Python.
7-
It has an optional C extensions though, that significantly improve the performance.
4+
这还有一个纯-Python Git 实现——Dulwich
5+
该项目托管在 https://www.dulwich.io/[]。
6+
它旨在在提供一个与 Git 存储库(本地和远程)的接口,该接口不直接调用 git,而是使用纯 Python
7+
它有一个可选的 C 扩展,可以显著提高性能。
88

9-
Dulwich follows git design and separate two basic levels of API: plumbing and porcelain.
9+
Dulwich 遵循 git 设计,将 API 分为两个基本级别:底层命令和上层命令。
1010

11-
Here is an example of using the lower level API to access the commit message of the last commit:
11+
下面是一个使用低级 API 获取上次提交的提交消息的例子:
1212

1313
[source, python]
1414
----
@@ -25,7 +25,7 @@ c.message
2525
# 'Add note about encoding.\n'
2626
----
2727

28-
To print a commit log using high-level porcelain API, one can use:
28+
要使用高级上层命令 API 打印提交日志,可以使用:
2929

3030
[source, python]
3131
----
@@ -38,6 +38,6 @@ porcelain.log('.', max_entries=1)
3838
----
3939

4040

41-
==== Further Reading
41+
==== 拓展阅读
4242

43-
The API documentation, tutorial, and many examples of how to do specific tasks with Dulwich are available on the official website https://www.dulwich.io[].
43+
在官方网站 https://www.dulwich.io[] 上可以找到 API 文档、教程和许多关于如何使用 Dulwich 完成特定任务的示例。

0 commit comments

Comments
 (0)