diff options
-rw-r--r-- | .git-commit-template | 19 | ||||
-rw-r--r-- | doc/RepositoryCommands.md | 20 |
2 files changed, 33 insertions, 6 deletions
diff --git a/.git-commit-template b/.git-commit-template new file mode 100644 index 0000000..cb5ed31 --- /dev/null +++ b/.git-commit-template @@ -0,0 +1,19 @@ +# Please enter the commit message for your changes. Lines starting +# with '#' will be ignored, and an empty message aborts the commit. +# +# All lines should wrap at 72 characters. +# +# ==[ Subject: One line only short meaningful description for logs ]===| + +# ==[ Blank: Follow the Subject with a blank line, do not remove ]=====| + +# ==[ Details: Describe what changed and explain why it changed]=======| + + +# ==[ Fields: Uncomment and edit where applicable ]====================| +# +# --[ Add reference to bug in bugtracker if any ]----------------------| +#BUG: #<bug number> +# +# --[ Add attribution if patch was contributed ]-----------------------| +#SUBMITTED-BY: <name here> diff --git a/doc/RepositoryCommands.md b/doc/RepositoryCommands.md index 6255214..3725b6e 100644 --- a/doc/RepositoryCommands.md +++ b/doc/RepositoryCommands.md @@ -1,8 +1,16 @@ -## Official documentation -From https://www.mercurial-scm.org/wiki/HttpCommandProtocol +## git commit template +You can set the commit template with: -## branchmap -$ curl "https://neueland.iserlohn-fortress.net/smolbote.hg/?cmd=branchmap" -default 197043ea8aac871126694366203ffabd7ae03935 -<branchname> <node> +~~~sh +git config commit.template=.git-commit-template +~~~ + +## gitea api +A full list of the api can be found on https://try.gitea.io/api/swagger. + +## Listing branches + +~~~sh +curl --request GET --url https://neueland.iserlohn-fortress.net/gitea/api/v1/repos/aqua/smolbote/branches +~~~ |