Skip to content

Commit 86dc6c4

Browse files
authored
Merge pull request #140 from noritada/fix-markup-2
2 parents ac0c3b2 + aef305f commit 86dc6c4

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

book/02-git-basics/sections/getting-a-repository.asc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -78,24 +78,24 @@ Subversion などの他の VCS を使っている人なら「"checkout" じゃ
7878
7979
//////////////////////////
8080
You clone a repository with `git clone [url]`.(((git commands, clone)))
81-
For example, if you want to clone the Git linkable library called libgit2, you can do so like this:
81+
For example, if you want to clone the Git linkable library called `libgit2`, you can do so like this:
8282
//////////////////////////
8383
リポジトリをクローンするには `git clone [url]` とします。(((git commands, clone)))
84-
たとえば、多言語へのバインディングが可能なGitライブラリであるlibgitをクローンする場合は次のようになります
84+
たとえば、多言語へのバインディングが可能なGitライブラリである `libgit2` をクローンする場合は次のようになります
8585
8686
[source,console]
8787
----
8888
$ git clone https://github.com/libgit2/libgit2
8989
----
9090
9191
//////////////////////////
92-
That creates a directory named ``libgit2'', initializes a `.git` directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version.
92+
That creates a directory named `libgit2`, initializes a `.git` directory inside it, pulls down all the data for that repository, and checks out a working copy of the latest version.
9393
If you go into the new `libgit2` directory, you'll see the project files in there, ready to be worked on or used.
94-
If you want to clone the repository into a directory named something other than ``libgit2'', you can specify that as the next command-line option:
94+
If you want to clone the repository into a directory named something other than `libgit2`, you can specify the new directory name as an additional argument:
9595
//////////////////////////
96-
これは、まず``libgit2''というディレクトリを作成してその中で `.git` ディレクトリを初期化し、リポジトリのすべてのデータを引き出し、そして最新バージョンの作業コピーをチェックアウトします。
96+
これは、まず `libgit2` というディレクトリを作成してその中で `.git` ディレクトリを初期化し、リポジトリのすべてのデータを引き出し、そして最新バージョンの作業コピーをチェックアウトします。
9797
新しくできた `libgit2` ディレクトリに入ると、プロジェクトのファイルをごらんいただけます。
98-
もし``libgit2''ではない別の名前のディレクトリにクローンしたいのなら、コマンドラインオプションでディレクトリ名を指定します。
98+
もし `libgit2` ではない別の名前のディレクトリにクローンしたいのなら、コマンドラインオプションでディレクトリ名を指定します。
9999
100100
[source,console]
101101
----

book/10-git-internals/sections/objects.asc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -235,10 +235,10 @@ Then, you specify the mode, SHA-1, and filename:
235235
自前でツリーを作るのも非常に簡単です。
236236
Gitは通常、ステージングエリアやインデックスの状態を取得してツリーを作成し、そのツリーをもとに一連のツリーオブジェクトを書き込みます。
237237
そのため、ツリーオブジェクトを作るには、まずファイルをステージングしてインデックスを作成しなければなりません。
238-
単一のエントリー – ここでは`test.txt`ファイルの最初のバージョン – からインデックスを作るには、`update-index` という配管コマンドを使います。
239-
このコマンドは、前のバージョンの`test.txt`ファイルをあえて新しいステージングエリアに追加する際に使用します。
238+
単一のエントリー – ここでは `test.txt` ファイルの最初のバージョン – からインデックスを作るには、`update-index` という配管コマンドを使います。
239+
このコマンドは、前のバージョンの `test.txt` ファイルをあえて新しいステージングエリアに追加する際に使用します。
240240
ファイルはまだステージングエリアには存在しない(まだステージングエリアをセットアップさえしていない)ので、`--add` オプションを付けなければなりません。
241-
また、追加しようとしているファイルはディレクトリには無くデータベースにあるので、`--cacheinfo`オプションを付ける必要があります。
241+
また、追加しようとしているファイルはディレクトリには無くデータベースにあるので、`--cacheinfo` オプションを付ける必要があります。
242242
その次に、モード、SHA-1、ファイル名を指定します。
243243
244244
[source,console]
@@ -285,7 +285,7 @@ tree
285285
//////////////////////////
286286
You'll now create a new tree with the second version of `test.txt` and a new file as well:
287287
//////////////////////////
288-
今度は、2つめのバージョンの`test.txt`と、新規作成したファイルから、新しくツリーを作ります。
288+
今度は、2つめのバージョンの `test.txt` と、新規作成したファイルから、新しくツリーを作ります。
289289
290290
[source,console]
291291
----
@@ -298,7 +298,7 @@ $ git update-index --add new.txt
298298
Your staging area now has the new version of `test.txt` as well as the new file `new.txt`.
299299
Write out that tree (recording the state of the staging area or index to a tree object) and see what it looks like:
300300
//////////////////////////
301-
これでステージングエリアには、`new.txt`という新しいファイルに加えて、新しいバージョンの`test.txt`も登録されました。
301+
これでステージングエリアには、 `new.txt` という新しいファイルに加えて、新しいバージョンの `test.txt` も登録されました。
302302
このツリーを書き出して(ステージングエリアまたはインデックスの状態をツリーオブジェクトとして記録して)、どのようになったか見てみましょう。
303303
304304
[source,console]
@@ -311,12 +311,12 @@ $ git cat-file -p 0155eb4229851634a0f03eb265b69f5a2d56f341
311311
----
312312
313313
//////////////////////////
314-
Notice that this tree has both file entries and also that the `test.txt` SHA-1 is the ``version 2'' SHA-1 from earlier (`1f7a7a`).
314+
Notice that this tree has both file entries and also that the `test.txt` SHA-1 is the "`version 2`" SHA-1 from earlier (`1f7a7a`).
315315
Just for fun, you'll add the first tree as a subdirectory into this one.
316316
You can read trees into your staging area by calling `read-tree`.
317317
In this case, you can read an existing tree into your staging area as a subtree by using the `--prefix` option to `read-tree`:
318318
//////////////////////////
319-
このツリーに両方のファイルエントリがあること、また、`test.txt`のSHA-1が先ほどの ``version 2'' のSHA-1(`1f7a7a`)であることに注意してください。
319+
このツリーに両方のファイルエントリがあること、また、`test.txt` のSHA-1が先ほどの "`version 2`" のSHA-1( `1f7a7a` )であることに注意してください。
320320
ちょっと試しに、最初のツリーをサブディレクトリとしてこの中に追加してみましょう。
321321
`read-tree` を呼ぶことで、ステージングエリアの中にツリーを読み込むことができます。
322322
このケースでは、`--prefix` オプションを付けて `read-tree` コマンドを使用することで、ステージングエリアの中に、既存のツリーをサブツリーとして読み込むことができます。
@@ -336,7 +336,7 @@ $ git cat-file -p 3c4e9cd789d88d8d89c1073707c3585e41b0e614
336336
If you created a working directory from the new tree you just wrote, you would get the two files in the top level of the working directory and a subdirectory named `bak` that contained the first version of the `test.txt` file.
337337
You can think of the data that Git contains for these structures as being like this:
338338
//////////////////////////
339-
先ほど書き込んだ新しいツリーから作業ディレクトリを作っていれば、作業ディレクトリの直下にファイルが2つと、最初のバージョンの`test.txt`ファイルが含まれている `bak` という名前のサブディレクトリが入ります。
339+
先ほど書き込んだ新しいツリーから作業ディレクトリを作っていれば、作業ディレクトリの直下にファイルが2つと、最初のバージョンの `test.txt` ファイルが含まれている `bak` という名前のサブディレクトリが入ります。
340340
このような構成に対し、Gitが格納するデータのイメージは次のようになります。
341341
342342
//////////////////////////

book/10-git-internals/sections/transfer-protocols.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ The `git-receive-pack` command immediately responds with one line for each refer
247247
The first line also has a list of the server's capabilities (here, `report-status`, `delete-refs`, and some others, including the client identifier).
248248
//////////////////////////
249249
`git-receive-pack` コマンドは、今ある参照1つにつき1行の応答を、その都度返します。このケースでは、`master` ブランチとそのSHA-1ハッシュのみを返しています。
250-
最初の行には、サーバーの持っている機能(ここでは、`report-status` や `delete-refs`など。クライアント識別子も含む)のリストも含まれています。
250+
最初の行には、サーバーの持っている機能(ここでは、`report-status` や `delete-refs` など。クライアント識別子も含む)のリストも含まれています。
251251
252252
//////////////////////////
253253
Each line starts with a 4-character hex value specifying how long the rest of the line is.

0 commit comments

Comments
 (0)