{"thread":{"id":"14077","subject":"[PATCH] api-builtin.txt: update and fix typo","startedAt":"2008-06-21T23:54:36Z","lastAt":"2008-06-21T23:54:36Z","messageCount":1,"participants":["Stephan Beyer"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"80579","messageId":"1214092476-8049-1-git-send-email-s-beyer@gmx.net","threadId":"14077","inReplyTo":null,"subject":"[PATCH] api-builtin.txt: update and fix typo","fromName":"Stephan Beyer","fromEmail":"s-beyer@gmx.net","sentAt":"2008-06-21T23:54:36Z","receivedAt":"2008-06-21T23:54:36Z","isPatch":true,"sender":{"key":"s-beyer@gmx.net","avatar":"https://avatars.githubusercontent.com/u/143889?v=4"},"body":"Mention NEED_WORK_TREE flag and command-list.txt.\nFix \"bulit-in\" typo and AsciiDoc-formatting of a paragraph.\n\nSigned-off-by: Stephan Beyer <s-beyer@gmx.net>\n---\n Documentation/technical/api-builtin.txt |   15 ++++++++++-----\n 1 files changed, 10 insertions(+), 5 deletions(-)\n\ndiff --git a/Documentation/technical/api-builtin.txt b/Documentation/technical/api-builtin.txt\nindex 52cdb4c..7ede1e6 100644\n--- a/Documentation/technical/api-builtin.txt\n+++ b/Documentation/technical/api-builtin.txt\n@@ -4,7 +4,7 @@ builtin API\n Adding a new built-in\n ---------------------\n \n-There are 4 things to do to add a bulit-in command implementation to\n+There are 4 things to do to add a built-in command implementation to\n git:\n \n . Define the implementation of the built-in command `foo` with\n@@ -18,8 +18,8 @@ git:\n   defined in `git.c`.  The entry should look like:\n \n \t{ \"foo\", cmd_foo, <options> },\n-\n-  where options is the bitwise-or of:\n++\n+where options is the bitwise-or of:\n \n `RUN_SETUP`::\n \n@@ -33,6 +33,12 @@ git:\n \tIf the standard output is connected to a tty, spawn a pager and\n \tfeed our output to it.\n \n+`NEED_WORK_TREE`::\n+\n+\tMake sure there is a work tree, i.e. the command cannot act\n+\ton bare repositories.\n+\tThis makes only sense when `RUN_SETUP` is also set.\n+\n . Add `builtin-foo.o` to `BUILTIN_OBJS` in `Makefile`.\n \n Additionally, if `foo` is a new command, there are 3 more things to do:\n@@ -41,8 +47,7 @@ Additionally, if `foo` is a new command, there are 3 more things to do:\n \n . Write documentation in `Documentation/git-foo.txt`.\n \n-. Add an entry for `git-foo` to the list at the end of\n-  `Documentation/cmd-list.perl`.\n+. Add an entry for `git-foo` to `command-list.txt`.\n \n \n How a built-in is called\n-- \n1.5.6.310.g344d\n"}]}