aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2016-09-19 16:07:45 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-09-19 16:07:45 +0000
commitde3fd0266cbd0092ec981c2d6da9a7f4b66a9adc (patch)
treeedd57855f1c2912d4a65591da46cf6880e2bd04a
parent3287a9ae759951acb54c30bb88a76b4c391002b7 (diff)
parent23461b60d29c35de92013527718e8bd9a886c76e (diff)
downloadrepohooks-de3fd0266cbd0092ec981c2d6da9a7f4b66a9adc.tar.gz
README: rework config file headers
am: 23461b60d2 Change-Id: I5a80abe3798909b8cd20705c8dd6fd4f0d36c969
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 3d82d14..b27f047 100644
--- a/README.md
+++ b/README.md
@@ -52,7 +52,7 @@ settings on top.
This file are checked in the top of a specific git repository. Stacking them
in subdirectories (to try and override parent settings) is not supported.
-### Example
+## Example
```
[Hook Scripts]
@@ -68,7 +68,7 @@ cpplint = --filter=-x ${PREUPLOAD_FILES}
clang-format = /usr/bin/clang-format
```
-### Environment
+## Environment
Hooks are executed in the top directory of the git repository. All paths should
generally be relative to that point.
@@ -84,7 +84,7 @@ A few environment variables are set so scripts don't need to discover things.
* `PREUPLOAD_COMMIT`: The commit that is currently being checked.
e.g. `1f89dce0468448fa36f632d2fc52175cd6940a91`
-### `[Hook Scripts]`
+## [Hook Scripts]
This section allows for completely arbitrary hooks to run on a per-repo basis.
@@ -100,7 +100,7 @@ some_cat = formatter --cat-commit ${PREUPLOAD_COMMIT}
some_dog = tool --no-cat-in-commit-message ${PREUPLOAD_COMMIT_MESSAGE}
```
-### `[Builtin Hooks]`
+## [Builtin Hooks]
This section allows for turning on common/builtin hooks. There are a bunch of
canned hooks already included geared towards AOSP style guidelines.
@@ -128,7 +128,7 @@ cpplint = true
gofmt = false
```
-### `[Builtin Hooks Options]`
+## [Builtin Hooks Options]
Used to customize the behavior of specific `[Builtin Hooks]`. Any arguments set
here will be passed directly to the linter in question. This will completely
@@ -153,7 +153,7 @@ force your own quote handling.
cpplint = --filter=-x ${PREUPLOAD_FILES}
```
-### `[Tool Paths]`
+## [Tool Paths]
Some builtin hooks need to call external executables to work correctly. By
default it will call those tools from the user's `$PATH`, but the paths of those