Skip to content

Translate B-embedding-git libgit2 #126

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

Merged
merged 10 commits into from
Aug 14, 2015
Merged

Translate B-embedding-git libgit2 #126

merged 10 commits into from
Aug 14, 2015

Conversation

Geno1024
Copy link
Contributor

No description provided.

@networm networm changed the title Translate B-2 Libgit2 Translate B-embedding-git libgit2 Jun 20, 2015
Libgit2 is a dependency-free implementation of Git, with a focus on having a nice API for use within other programs.
You can find it at http://libgit2.github.com[].
另外一种可以列入考虑的方式就是使用 Libgit2 。
Libgit2 是一个致力于提供一个更好的 API 去让其它程序使用的 Git 的非依赖性的工具。
Copy link
Contributor

Choose a reason for hiding this comment

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

Libgit2 是一个 Git 的非依赖性的工具,它致力于为其他程序使用 Git 提供更好的 API。
但是感觉还是不太通顺……

@IceNature
Copy link
Contributor

完成@Geno1024

@networm networm mentioned this pull request Jul 29, 2015
95 tasks
@networm networm modified the milestone: v1.0.0 Jul 29, 2015
@Geno1024
Copy link
Contributor Author

@IceNature 已修改,并提出 1 个疑问。

Another option at your disposal is to use Libgit2.
Libgit2 is a dependency-free implementation of Git, with a focus on having a nice API for use within other programs.
You can find it at http://libgit2.github.com[].
另外一种可以列入考虑的方式就是使用 Libgit2 。
Copy link

Choose a reason for hiding this comment

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

另外一种方式供你使用的是 Libgit2 。

感觉比较通顺,承接第一段

Copy link
Contributor Author

Choose a reason for hiding this comment

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

这样句子不太通顺。联系本章开头的介绍,我决定

另外一种可以供你使用的是 Libgit2。

@fatjyc
Copy link

fatjyc commented Aug 2, 2015

已完成 @Geno1024

----


==== Further Reading
==== 拓展阅读
Copy link
Member

Choose a reason for hiding this comment

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

扩展阅读

@Geno1024
Copy link
Contributor Author

Geno1024 commented Aug 3, 2015

@fatjyc 已修改。
@sanddudu 就暂时定为可定制性吧,虽然我忽然想到了“灵活性”。

你可以发现,代码看起来更加清晰了。
首先, Rugged 使用异常机制,它可以抛出类似于 `ConfigError` 或者 `ObjectError` 之类的东西来告知错误的情况。
其次,不需要明确的资源释放,因为 Ruby 是支持垃圾回收的。
我们来看一下一个稍微复杂一点的例子:从头开始制作一个提交。
Copy link

Choose a reason for hiding this comment

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

「来看一下一个」直接写成「来看一个」语义会更清晰一些吧

@tankxu
Copy link

tankxu commented Aug 13, 2015

已完成 @Geno1024

Let's take a look at a slightly more complicated example: crafting a commit from scratch
你可以发现,代码看起来更加清晰了。
首先, Rugged 使用异常机制,它可以抛出类似于 `ConfigError` 或者 `ObjectError` 之类的东西来告知错误的情况。
其次,不需要明确的资源释放,因为 Ruby 是支持垃圾回收的。
Copy link
Contributor

Choose a reason for hiding this comment

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

“明确的”中的“的”字建议删除。
不需要明确的资源释放,揣测了下这句的意思,是不是说不需要显式声明资源释放?或者换种说法?

@networm
Copy link
Member

networm commented Aug 14, 2015

@Geno1024 请统一英文行数与中文行数并及时修正。

@Geno1024
Copy link
Contributor Author

@tankxu @branchzero 已修改。

The official collection of bindings can be found by browsing the repositories at https://github.com/libgit2[].
The code we'll write will return the commit message from the commit eventually pointed to by HEAD (sort of like `git log -1`).
Libgit2 有很多种语言的绑定。
在这篇文章中,我们展现了一个使用了几个更加完整的绑定包的小例子,这些库存在于许多种语言中,包括 C++, Go, Node.js, Erlang, 以及 JVM ,它们的成熟度各不相同。
Copy link
Contributor

Choose a reason for hiding this comment

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

包括 C++, Go, Node.js, Erlang, 以及 JVM
=>
包括 C++、Go、Node.js、Erlang 以及 JVM

@branchzero
Copy link
Contributor

@Geno1024 刚才出去了一趟,没看完,实在抱歉。现在已经审核完毕,请查收:)

@Geno1024
Copy link
Contributor Author

@branchzero 已收到并全部修复~

networm added a commit that referenced this pull request Aug 14, 2015
Translate B-embedding-git libgit2
@networm networm merged commit 7b8b124 into progit:master Aug 14, 2015
@networm
Copy link
Member

networm commented Aug 14, 2015

@Geno1024 @IceNature @fatjyc @tankxu @branchzero 已合并入主干。

@Geno1024 Geno1024 mentioned this pull request Aug 20, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants