aboutsummaryrefslogtreecommitdiffstats
path: root/git.sr.ht/api.md
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2020-02-17 11:51:08 -0500
committerDrew DeVault <sir@cmpwn.com>2020-02-17 11:51:08 -0500
commit97d5f17bfc5936f349afdfb9e59450b7c081530a (patch)
treef6c5d5c183afc51e89770511a2e0d54c61025bad /git.sr.ht/api.md
parent3b97de045ae08c19574c6b8ed4d09ef4570bfb7a (diff)
downloadsr.ht-docs-97d5f17bfc5936f349afdfb9e59450b7c081530a.tar.gz
git.sr.ht: document push options
Diffstat (limited to 'git.sr.ht/api.md')
-rw-r--r--git.sr.ht/api.md8
1 files changed, 8 insertions, 0 deletions
diff --git a/git.sr.ht/api.md b/git.sr.ht/api.md
index 5edc6e7..0c16dc1 100644
--- a/git.sr.ht/api.md
+++ b/git.sr.ht/api.md
@@ -405,6 +405,7 @@ executing `git push`. Your server has 5 seconds to respond to the HTTP request.
```json
{
"push": "uuid assigned to this push event",
+ "push-options": { map of push options },
"pusher": { user resource },
"refs": [
{
@@ -425,3 +426,10 @@ executing `git push`. Your server has 5 seconds to respond to the HTTP request.
]
}
```
+
+**Notes**
+
+- Push options (specified via `git push -o <option>`) are interpreted as
+ `key=value`, and the map is populated as such. For example, `git push -o
+ foo=bar` would result in `{"foo": "bar"}`. Options specified without a value -
+ e.g. `-o foo` - will have their value set to an empty string.