{"action":"created","comment":{"url":"https://api.github.com/repos/progit/progit2-zh/pulls/comments/32491818","id":32491818,"diff_hunk":"@@ -31,103 +31,103 @@ javac -cp .:org.eclipse.jgit-3.5.0.201409260305-r.jar App.java\n java -cp .:org.eclipse.jgit-3.5.0.201409260305-r.jar App\n ----\n \n-==== Plumbing\n+==== 底层命令\n \n-JGit has two basic levels of API: plumbing and porcelain.\n-The terminology for these comes from Git itself, and JGit is divided into roughly the same kinds of areas: porcelain APIs are a friendly front-end for common user-level actions (the sorts of things a normal user would use the Git command-line tool for), while the plumbing APIs are for interacting with low-level repository objects directly.\n+JGit 的 API 有两种基本的层次：底层命令和高层命令。\n+这个两个术语都来自 Git ，并且 JGit 也被粗略地按照相同的方式划分：高层 API 是一个面向普通用户级别功能的友好的前端（一系列普通用户使用 Git 命令行工具时可能用到的东西），底层 API 则直接作用于低级的仓库对象。\n \n-The starting point for most JGit sessions is the `Repository` class, and the first thing you'll want to do is create an instance of it.\n-For a filesystem-based repository (yes, JGit allows for other storage models), this is accomplished using `FileRepositoryBuilder`:\n+对于大多数 JGit 会话，一般都以 `Repository` 类作为起点。\n+对于一个基于文件系统的仓库来说（嗯， JGit 允许其它的存储模型），用 `FileRepositoryBuilder` 完成它。\n \n [source,java]\n ----\n-// Create a new repository; the path must exist\n+// 创建一个新仓库，路径必须存在","path":"book/B-embedding-git/sections/jgit.asc","position":57,"original_position":57,"commit_id":"1a1ebd6c30ff1993b583c2c15132d3b7ffb9315d","original_commit_id":"1a1ebd6c30ff1993b583c2c15132d3b7ffb9315d","user":{"login":"networm","id":440624,"avatar_url":"https://avatars.githubusercontent.com/u/440624?v=3","gravatar_id":"","url":"https://api.github.com/users/networm","html_url":"https://github.com/networm","followers_url":"https://api.github.com/users/networm/followers","following_url":"https://api.github.com/users/networm/following{/other_user}","gists_url":"https://api.github.com/users/networm/gists{/gist_id}","starred_url":"https://api.github.com/users/networm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/networm/subscriptions","organizations_url":"https://api.github.com/users/networm/orgs","repos_url":"https://api.github.com/users/networm/repos","events_url":"https://api.github.com/users/networm/events{/privacy}","received_events_url":"https://api.github.com/users/networm/received_events","type":"User","site_admin":false},"body":"这里好像是分号 ；","created_at":"2015-06-16T05:20:28Z","updated_at":"2015-06-16T05:20:28Z","html_url":"https://github.com/progit/progit2-zh/pull/77#discussion_r32491818","pull_request_url":"https://api.github.com/repos/progit/progit2-zh/pulls/77","_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/comments/32491818"},"html":{"href":"https://github.com/progit/progit2-zh/pull/77#discussion_r32491818"},"pull_request":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/77"}}},"pull_request":{"url":"https://api.github.com/repos/progit/progit2-zh/pulls/77","id":37656547,"html_url":"https://github.com/progit/progit2-zh/pull/77","diff_url":"https://github.com/progit/progit2-zh/pull/77.diff","patch_url":"https://github.com/progit/progit2-zh/pull/77.patch","issue_url":"https://api.github.com/repos/progit/progit2-zh/issues/77","number":77,"state":"open","locked":false,"title":"[translate] translate B-2; update status.json;","user":{"login":"Geno1024","id":6427392,"avatar_url":"https://avatars.githubusercontent.com/u/6427392?v=3","gravatar_id":"","url":"https://api.github.com/users/Geno1024","html_url":"https://github.com/Geno1024","followers_url":"https://api.github.com/users/Geno1024/followers","following_url":"https://api.github.com/users/Geno1024/following{/other_user}","gists_url":"https://api.github.com/users/Geno1024/gists{/gist_id}","starred_url":"https://api.github.com/users/Geno1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geno1024/subscriptions","organizations_url":"https://api.github.com/users/Geno1024/orgs","repos_url":"https://api.github.com/users/Geno1024/repos","events_url":"https://api.github.com/users/Geno1024/events{/privacy}","received_events_url":"https://api.github.com/users/Geno1024/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-15T03:48:14Z","updated_at":"2015-06-16T05:20:28Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bdf05ca8dd7f8e4a627ed8a31a696a4bbb4342a9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/progit/progit2-zh/pulls/77/commits","review_comments_url":"https://api.github.com/repos/progit/progit2-zh/pulls/77/comments","review_comment_url":"https://api.github.com/repos/progit/progit2-zh/pulls/comments{/number}","comments_url":"https://api.github.com/repos/progit/progit2-zh/issues/77/comments","statuses_url":"https://api.github.com/repos/progit/progit2-zh/statuses/1a1ebd6c30ff1993b583c2c15132d3b7ffb9315d","head":{"label":"Geno1024:master","ref":"master","sha":"1a1ebd6c30ff1993b583c2c15132d3b7ffb9315d","user":{"login":"Geno1024","id":6427392,"avatar_url":"https://avatars.githubusercontent.com/u/6427392?v=3","gravatar_id":"","url":"https://api.github.com/users/Geno1024","html_url":"https://github.com/Geno1024","followers_url":"https://api.github.com/users/Geno1024/followers","following_url":"https://api.github.com/users/Geno1024/following{/other_user}","gists_url":"https://api.github.com/users/Geno1024/gists{/gist_id}","starred_url":"https://api.github.com/users/Geno1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geno1024/subscriptions","organizations_url":"https://api.github.com/users/Geno1024/orgs","repos_url":"https://api.github.com/users/Geno1024/repos","events_url":"https://api.github.com/users/Geno1024/events{/privacy}","received_events_url":"https://api.github.com/users/Geno1024/received_events","type":"User","site_admin":false},"repo":{"id":37440244,"name":"progit2-zh","full_name":"Geno1024/progit2-zh","owner":{"login":"Geno1024","id":6427392,"avatar_url":"https://avatars.githubusercontent.com/u/6427392?v=3","gravatar_id":"","url":"https://api.github.com/users/Geno1024","html_url":"https://github.com/Geno1024","followers_url":"https://api.github.com/users/Geno1024/followers","following_url":"https://api.github.com/users/Geno1024/following{/other_user}","gists_url":"https://api.github.com/users/Geno1024/gists{/gist_id}","starred_url":"https://api.github.com/users/Geno1024/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Geno1024/subscriptions","organizations_url":"https://api.github.com/users/Geno1024/orgs","repos_url":"https://api.github.com/users/Geno1024/repos","events_url":"https://api.github.com/users/Geno1024/events{/privacy}","received_events_url":"https://api.github.com/users/Geno1024/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Geno1024/progit2-zh","description":"","fork":true,"url":"https://api.github.com/repos/Geno1024/progit2-zh","forks_url":"https://api.github.com/repos/Geno1024/progit2-zh/forks","keys_url":"https://api.github.com/repos/Geno1024/progit2-zh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Geno1024/progit2-zh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Geno1024/progit2-zh/teams","hooks_url":"https://api.github.com/repos/Geno1024/progit2-zh/hooks","issue_events_url":"https://api.github.com/repos/Geno1024/progit2-zh/issues/events{/number}","events_url":"https://api.github.com/repos/Geno1024/progit2-zh/events","assignees_url":"https://api.github.com/repos/Geno1024/progit2-zh/assignees{/user}","branches_url":"https://api.github.com/repos/Geno1024/progit2-zh/branches{/branch}","tags_url":"https://api.github.com/repos/Geno1024/progit2-zh/tags","blobs_url":"https://api.github.com/repos/Geno1024/progit2-zh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Geno1024/progit2-zh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Geno1024/progit2-zh/git/refs{/sha}","trees_url":"https://api.github.com/repos/Geno1024/progit2-zh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Geno1024/progit2-zh/statuses/{sha}","languages_url":"https://api.github.com/repos/Geno1024/progit2-zh/languages","stargazers_url":"https://api.github.com/repos/Geno1024/progit2-zh/stargazers","contributors_url":"https://api.github.com/repos/Geno1024/progit2-zh/contributors","subscribers_url":"https://api.github.com/repos/Geno1024/progit2-zh/subscribers","subscription_url":"https://api.github.com/repos/Geno1024/progit2-zh/subscription","commits_url":"https://api.github.com/repos/Geno1024/progit2-zh/commits{/sha}","git_commits_url":"https://api.github.com/repos/Geno1024/progit2-zh/git/commits{/sha}","comments_url":"https://api.github.com/repos/Geno1024/progit2-zh/comments{/number}","issue_comment_url":"https://api.github.com/repos/Geno1024/progit2-zh/issues/comments{/number}","contents_url":"https://api.github.com/repos/Geno1024/progit2-zh/contents/{+path}","compare_url":"https://api.github.com/repos/Geno1024/progit2-zh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Geno1024/progit2-zh/merges","archive_url":"https://api.github.com/repos/Geno1024/progit2-zh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Geno1024/progit2-zh/downloads","issues_url":"https://api.github.com/repos/Geno1024/progit2-zh/issues{/number}","pulls_url":"https://api.github.com/repos/Geno1024/progit2-zh/pulls{/number}","milestones_url":"https://api.github.com/repos/Geno1024/progit2-zh/milestones{/number}","notifications_url":"https://api.github.com/repos/Geno1024/progit2-zh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Geno1024/progit2-zh/labels{/name}","releases_url":"https://api.github.com/repos/Geno1024/progit2-zh/releases{/id}","created_at":"2015-06-15T02:57:48Z","updated_at":"2015-06-15T02:57:49Z","pushed_at":"2015-06-15T03:47:38Z","git_url":"git://github.com/Geno1024/progit2-zh.git","ssh_url":"git@github.com:Geno1024/progit2-zh.git","clone_url":"https://github.com/Geno1024/progit2-zh.git","svn_url":"https://github.com/Geno1024/progit2-zh","homepage":null,"size":160579,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"progit:master","ref":"master","sha":"d186746da42d4e28eae57df4db9ddcb1df41fe24","user":{"login":"progit","id":95588,"avatar_url":"https://avatars.githubusercontent.com/u/95588?v=3","gravatar_id":"","url":"https://api.github.com/users/progit","html_url":"https://github.com/progit","followers_url":"https://api.github.com/users/progit/followers","following_url":"https://api.github.com/users/progit/following{/other_user}","gists_url":"https://api.github.com/users/progit/gists{/gist_id}","starred_url":"https://api.github.com/users/progit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progit/subscriptions","organizations_url":"https://api.github.com/users/progit/orgs","repos_url":"https://api.github.com/users/progit/repos","events_url":"https://api.github.com/users/progit/events{/privacy}","received_events_url":"https://api.github.com/users/progit/received_events","type":"Organization","site_admin":false},"repo":{"id":26017730,"name":"progit2-zh","full_name":"progit/progit2-zh","owner":{"login":"progit","id":95588,"avatar_url":"https://avatars.githubusercontent.com/u/95588?v=3","gravatar_id":"","url":"https://api.github.com/users/progit","html_url":"https://github.com/progit","followers_url":"https://api.github.com/users/progit/followers","following_url":"https://api.github.com/users/progit/following{/other_user}","gists_url":"https://api.github.com/users/progit/gists{/gist_id}","starred_url":"https://api.github.com/users/progit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progit/subscriptions","organizations_url":"https://api.github.com/users/progit/orgs","repos_url":"https://api.github.com/users/progit/repos","events_url":"https://api.github.com/users/progit/events{/privacy}","received_events_url":"https://api.github.com/users/progit/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/progit/progit2-zh","description":"","fork":false,"url":"https://api.github.com/repos/progit/progit2-zh","forks_url":"https://api.github.com/repos/progit/progit2-zh/forks","keys_url":"https://api.github.com/repos/progit/progit2-zh/keys{/key_id}","collaborators_url":"https://api.github.com/repos/progit/progit2-zh/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/progit/progit2-zh/teams","hooks_url":"https://api.github.com/repos/progit/progit2-zh/hooks","issue_events_url":"https://api.github.com/repos/progit/progit2-zh/issues/events{/number}","events_url":"https://api.github.com/repos/progit/progit2-zh/events","assignees_url":"https://api.github.com/repos/progit/progit2-zh/assignees{/user}","branches_url":"https://api.github.com/repos/progit/progit2-zh/branches{/branch}","tags_url":"https://api.github.com/repos/progit/progit2-zh/tags","blobs_url":"https://api.github.com/repos/progit/progit2-zh/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/progit/progit2-zh/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/progit/progit2-zh/git/refs{/sha}","trees_url":"https://api.github.com/repos/progit/progit2-zh/git/trees{/sha}","statuses_url":"https://api.github.com/repos/progit/progit2-zh/statuses/{sha}","languages_url":"https://api.github.com/repos/progit/progit2-zh/languages","stargazers_url":"https://api.github.com/repos/progit/progit2-zh/stargazers","contributors_url":"https://api.github.com/repos/progit/progit2-zh/contributors","subscribers_url":"https://api.github.com/repos/progit/progit2-zh/subscribers","subscription_url":"https://api.github.com/repos/progit/progit2-zh/subscription","commits_url":"https://api.github.com/repos/progit/progit2-zh/commits{/sha}","git_commits_url":"https://api.github.com/repos/progit/progit2-zh/git/commits{/sha}","comments_url":"https://api.github.com/repos/progit/progit2-zh/comments{/number}","issue_comment_url":"https://api.github.com/repos/progit/progit2-zh/issues/comments{/number}","contents_url":"https://api.github.com/repos/progit/progit2-zh/contents/{+path}","compare_url":"https://api.github.com/repos/progit/progit2-zh/compare/{base}...{head}","merges_url":"https://api.github.com/repos/progit/progit2-zh/merges","archive_url":"https://api.github.com/repos/progit/progit2-zh/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/progit/progit2-zh/downloads","issues_url":"https://api.github.com/repos/progit/progit2-zh/issues{/number}","pulls_url":"https://api.github.com/repos/progit/progit2-zh/pulls{/number}","milestones_url":"https://api.github.com/repos/progit/progit2-zh/milestones{/number}","notifications_url":"https://api.github.com/repos/progit/progit2-zh/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/progit/progit2-zh/labels{/name}","releases_url":"https://api.github.com/repos/progit/progit2-zh/releases{/id}","created_at":"2014-10-31T13:43:10Z","updated_at":"2015-06-16T05:16:58Z","pushed_at":"2015-06-16T04:15:08Z","git_url":"git://github.com/progit/progit2-zh.git","ssh_url":"git@github.com:progit/progit2-zh.git","clone_url":"https://github.com/progit/progit2-zh.git","svn_url":"https://github.com/progit/progit2-zh","homepage":null,"size":160579,"stargazers_count":161,"watchers_count":161,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":69,"mirror_url":null,"open_issues_count":24,"forks":69,"open_issues":24,"watchers":161,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/77"},"html":{"href":"https://github.com/progit/progit2-zh/pull/77"},"issue":{"href":"https://api.github.com/repos/progit/progit2-zh/issues/77"},"comments":{"href":"https://api.github.com/repos/progit/progit2-zh/issues/77/comments"},"review_comments":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/77/comments"},"review_comment":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/progit/progit2-zh/pulls/77/commits"},"statuses":{"href":"https://api.github.com/repos/progit/progit2-zh/statuses/1a1ebd6c30ff1993b583c2c15132d3b7ffb9315d"}}}}