diff --git a/book/08-customizing-git/sections/hooks.asc b/book/08-customizing-git/sections/hooks.asc index ea697695..3700ffe0 100644 --- a/book/08-customizing-git/sections/hooks.asc +++ b/book/08-customizing-git/sections/hooks.asc @@ -14,7 +14,7 @@ You can use these hooks for all sorts of reasons. 他のバージョンコントロールシステムと同じように、Gitにも特定のアクションが発生した時にカスタムスクリプトを叩く方法があります。 このようなフックは、クライアントサイドとサーバーサイドの二つのグループに分けられます。 クライアントサイドフックはコミットやマージといったクライアントでの操作の際に、サーバーサイドフックはプッシュされたコミットの受け取りといったネットワーク操作の際に、それぞれ実行されます。 -これらのフックは、さまざまなな目的に用いることができます。 +これらのフックは、さまざまな目的に用いることができます。 ////////////////////////// ==== Installing a Hook @@ -111,7 +111,7 @@ After the entire commit process is completed, the `post-commit` hook runs. It doesn't take any parameters, but you can easily get the last commit by running `git log -1 HEAD`. Generally, this script is used for notification or something similar. ////////////////////////// -コミットプロセスが全て完了した後には、`post-commit`フックが実行されます。 +コミットプロセスが全て完了した後には、 `post-commit` フックが実行されます。 このフックはパラメータを取りませんが、 `git log -1 HEAD` を実行することで直前のコミットを簡単に取り出すことができます。 一般的にこのスクリプトは何かしらの通知といった目的に使用されます。