{"thread":{"id":"13348","subject":"[PATCH 2/3] Documentation: rename \"hooks.txt\" to \"githooks.txt\" and make it a man page","startedAt":"2008-05-02T03:30:47Z","lastAt":"2008-05-02T03:30:47Z","messageCount":1,"participants":["Christian Couder"],"isPatch":true,"patchVersion":1,"patchTotal":3},"messages":[{"id":"75795","messageId":"20080502053047.ac68841e.chriscool@tuxfamily.org","threadId":"13348","inReplyTo":null,"subject":"[PATCH 2/3] Documentation: rename \"hooks.txt\" to \"githooks.txt\" and make it a man page","fromName":"Christian Couder","fromEmail":"chriscool@tuxfamily.org","sentAt":"2008-05-02T03:30:47Z","receivedAt":"2008-05-02T03:30:47Z","isPatch":true,"sender":{"key":"christian.couder@gmail.com","avatar":"https://avatars.githubusercontent.com/u/208954?v=4"},"body":"Also now \"gitcli(5)\" becomes \"gitcli(7)\".\n\nSigned-off-by: Christian Couder <chriscool@tuxfamily.org>\n---\n Documentation/Makefile                    |    5 ++---\n Documentation/cvs-migration.txt           |    2 +-\n Documentation/git-commit.txt              |    4 ++--\n Documentation/git-rev-parse.txt           |    2 +-\n Documentation/git.txt                     |    2 +-\n Documentation/gitcli.txt                  |    2 +-\n Documentation/{hooks.txt => githooks.txt} |   20 ++++++++++++++++++--\n Documentation/repository-layout.txt       |    2 +-\n Documentation/user-manual.txt             |    2 +-\n 9 files changed, 28 insertions(+), 13 deletions(-)\n rename Documentation/{hooks.txt => githooks.txt} (98%)\n\ndiff --git a/Documentation/Makefile b/Documentation/Makefile\nindex 43781fb..4144d1e 100644\n--- a/Documentation/Makefile\n+++ b/Documentation/Makefile\n@@ -2,8 +2,8 @@ MAN1_TXT= \\\n \t$(filter-out $(addsuffix .txt, $(ARTICLES) $(SP_ARTICLES)), \\\n \t\t$(wildcard git-*.txt)) \\\n \tgitk.txt\n-MAN5_TXT=gitattributes.txt gitignore.txt gitcli.txt gitmodules.txt\n-MAN7_TXT=git.txt\n+MAN5_TXT=gitattributes.txt gitignore.txt gitmodules.txt githooks.txt\n+MAN7_TXT=git.txt gitcli.txt\n \n MAN_TXT = $(MAN1_TXT) $(MAN5_TXT) $(MAN7_TXT)\n MAN_XML=$(patsubst %.txt,%.xml,$(MAN_TXT))\n@@ -18,7 +18,6 @@ ARTICLES += cvs-migration\n ARTICLES += diffcore\n ARTICLES += howto-index\n ARTICLES += repository-layout\n-ARTICLES += hooks\n ARTICLES += everyday\n ARTICLES += git-tools\n ARTICLES += glossary\ndiff --git a/Documentation/cvs-migration.txt b/Documentation/cvs-migration.txt\nindex 00f2e36..374bc87 100644\n--- a/Documentation/cvs-migration.txt\n+++ b/Documentation/cvs-migration.txt\n@@ -137,7 +137,7 @@ Advanced Shared Repository Management\n \n Git allows you to specify scripts called \"hooks\" to be run at certain\n points.  You can use these, for example, to send all commits to the shared\n-repository to a mailing list.  See link:hooks.html[Hooks used by git].\n+repository to a mailing list.  See linkgit:githooks[5][Hooks used by git].\n \n You can enforce finer grained permissions using update hooks.  See\n link:howto/update-hook-example.txt[Controlling access to branches using\ndiff --git a/Documentation/git-commit.txt b/Documentation/git-commit.txt\nindex 4bb51cc..c3c9f5b 100644\n--- a/Documentation/git-commit.txt\n+++ b/Documentation/git-commit.txt\n@@ -87,7 +87,7 @@ OPTIONS\n \n --no-verify::\n \tThis option bypasses the pre-commit and commit-msg hooks.\n-\tSee also link:hooks.html[hooks].\n+\tSee also linkgit:githooks[5][hooks].\n \n --allow-empty::\n \tUsually recording a commit that has the exact same tree as its\n@@ -292,7 +292,7 @@ order).\n HOOKS\n -----\n This command can run `commit-msg`, `prepare-commit-msg`, `pre-commit`,\n-and `post-commit` hooks.  See link:hooks.html[hooks] for more\n+and `post-commit` hooks.  See linkgit:githooks[5][hooks] for more\n information.\n \n \ndiff --git a/Documentation/git-rev-parse.txt b/Documentation/git-rev-parse.txt\nindex 110e7ba..b6b2fe9 100644\n--- a/Documentation/git-rev-parse.txt\n+++ b/Documentation/git-rev-parse.txt\n@@ -347,7 +347,7 @@ Each line of options has this format:\n \n \t* Use `*` to mean that this option should not be listed in the usage\n \t  generated for the `-h` argument. It's shown for `--help-all` as\n-\t  documented in linkgit:gitcli[5].\n+\t  documented in linkgit:gitcli[7].\n \n \t* Use `!` to not make the corresponding negated long option available.\n \ndiff --git a/Documentation/git.txt b/Documentation/git.txt\nindex 6f445b1..adcd3e0 100644\n--- a/Documentation/git.txt\n+++ b/Documentation/git.txt\n@@ -364,7 +364,7 @@ File/Directory Structure\n \n Please see the link:repository-layout.html[repository layout] document.\n \n-Read link:hooks.html[hooks] for more details about each hook.\n+Read linkgit:githooks[5][hooks] for more details about each hook.\n \n Higher level SCMs may provide and manage additional information in the\n `$GIT_DIR`.\ndiff --git a/Documentation/gitcli.txt b/Documentation/gitcli.txt\nindex 7ee5ce3..835cb05 100644\n--- a/Documentation/gitcli.txt\n+++ b/Documentation/gitcli.txt\n@@ -1,4 +1,4 @@\n-gitcli(5)\n+gitcli(7)\n =========\n \n NAME\ndiff --git a/Documentation/hooks.txt b/Documentation/githooks.txt\nsimilarity index 98%\nrename from Documentation/hooks.txt\nrename to Documentation/githooks.txt\nindex 1283ab4..67c0809 100644\n--- a/Documentation/hooks.txt\n+++ b/Documentation/githooks.txt\n@@ -1,5 +1,17 @@\n-Hooks used by git\n-=================\n+githooks(5)\n+===========\n+\n+NAME\n+----\n+githooks - Hooks used by git\n+\n+SYNOPSIS\n+--------\n+$GIT_DIR/hooks/*\n+\n+\n+DESCRIPTION\n+-----------\n \n Hooks are little scripts you can place in `$GIT_DIR/hooks`\n directory to trigger action at certain points.  When\n@@ -284,3 +296,7 @@ pre-auto-gc\n This hook is invoked by `git-gc --auto`. It takes no parameter, and\n exiting with non-zero status from this script causes the `git-gc --auto`\n to abort.\n+\n+GIT\n+---\n+Part of the linkgit:git[7] suite\ndiff --git a/Documentation/repository-layout.txt b/Documentation/repository-layout.txt\nindex bbaed2e..7fd187b 100644\n--- a/Documentation/repository-layout.txt\n+++ b/Documentation/repository-layout.txt\n@@ -124,7 +124,7 @@ hooks::\n \tcommands.  A handful of sample hooks are installed when\n \t`git init` is run, but all of them are disabled by\n \tdefault.  To enable, they need to be made executable.\n-\tRead link:hooks.html[hooks] for more details about\n+\tRead linkgit:githooks[5][hooks] for more details about\n \teach hook.\n \n index::\ndiff --git a/Documentation/user-manual.txt b/Documentation/user-manual.txt\nindex 86b91a5..e2db850 100644\n--- a/Documentation/user-manual.txt\n+++ b/Documentation/user-manual.txt\n@@ -1881,7 +1881,7 @@ $ chmod a+x hooks/post-update\n \n (For an explanation of the last two lines, see\n linkgit:git-update-server-info[1], and the documentation\n-link:hooks.html[Hooks used by git].)\n+linkgit:githooks[5][Hooks used by git].)\n \n Advertise the URL of proj.git.  Anybody else should then be able to\n clone or pull from that URL, for example with a command line like:\n-- \n1.5.5.1.124.g7e5fa.dirty\n"}]}