0
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-16 04:57:23 +01:00
forgejo/modules/repository
wxiaoguang dc9cebdf45
Use --message=%s for git commit message ()
Close  

`git commit` message option _only_ supports 4 formats (well, only ....):
* `"commit", "-m", msg`
* `"commit", "-m{msg}"`  (no space)
* `"commit", "--message", msg`
* `"commit", "--message={msg}"`

The long format with `=` is the best choice, and it's documented in `man
git-commit`:

`-m <msg>, --message=<msg> ...`

ps: I would suggest always use long format option for git command, as
much as possible.

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2023-02-21 14:12:57 +08:00
..
collaborator.go
collaborator_test.go Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
commits.go Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
commits_test.go Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
create.go Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
create_test.go Map OIDC groups to Orgs/Teams () 2023-02-08 14:44:42 +08:00
delete.go Rename repo.GetOwner to repo.LoadOwner () 2023-02-18 20:11:03 +08:00
env.go
fork.go
generate.go
generate_test.go
hooks.go
init.go Use --message=%s for git commit message () 2023-02-21 14:12:57 +08:00
main_test.go
push.go
repo.go Add context cache as a request level cache () 2023-02-15 21:37:34 +08:00
temp.go