From e99084a952b5c872d2a90c3b2b422ba7b98d0903 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Sat, 8 Sep 2018 17:45:11 +0200 Subject: Add commit template --- .git-commit-template | 19 +++++++++++++++++++ doc/RepositoryCommands.md | 20 ++++++++++++++------ 2 files changed, 33 insertions(+), 6 deletions(-) create mode 100644 .git-commit-template 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: # +# +# --[ Add attribution if patch was contributed ]-----------------------| +#SUBMITTED-BY: 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 - +~~~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 +~~~ -- cgit v1.2.1