diff options
author | wxiaoguang <wxiaoguang@gmail.com> | 2023-02-21 14:12:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-21 14:12:57 +0800 |
commit | dc9cebdf45d3594058727a5c8a5f20af098c5e7a (patch) | |
tree | 3b1159ee7cf0de7ac94b480e835ff3c27fd9266b /web_src | |
parent | e3cffa70f9f731436ab005e4bb10f57166ffc6d5 (diff) | |
download | gitea-dc9cebdf45d3594058727a5c8a5f20af098c5e7a.tar.gz gitea-dc9cebdf45d3594058727a5c8a5f20af098c5e7a.zip |
Use `--message=%s` for git commit message (#23028)
Close #23027
`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>
Diffstat (limited to 'web_src')
0 files changed, 0 insertions, 0 deletions