aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2016-09-19 16:14:16 +0000
committerandroid-build-merger <android-build-merger@google.com>2016-09-19 16:14:16 +0000
commitcba08cc0b0e9630f70ded1c57388285d86dbc49d (patch)
treeedd57855f1c2912d4a65591da46cf6880e2bd04a
parentde5f20cf231e0247660233e772926cd60a32e395 (diff)
parent006e023cf28cf3f214f5ee1406ad382ba3282770 (diff)
downloadrepohooks-cba08cc0b0e9630f70ded1c57388285d86dbc49d.tar.gz
README: rework config file headers am: 23461b60d2 am: de3fd0266c
am: 006e023cf2 Change-Id: I87746b8ed52cfc3d9fb9aad6dd628c9d1fcbb958
-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