aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2018-07-31 15:18:09 +0200
committerMichael Muré <batolettre@gmail.com>2018-07-31 16:44:23 +0200
commiteb39c5c29bc0e9b5e15a940a1b71bdac688b6535 (patch)
tree5ef9b827f4a3097e4eb1367097d0059f895befbe /doc
parent8a4e373e7b1c093abeb967d9a6a43c5ed533edb8 (diff)
downloadgit-bug-eb39c5c29bc0e9b5e15a940a1b71bdac688b6535.tar.gz
cli: rework new and comment command to better use the editor
a nice templace is now provided with explanations new: title and message can now be provided from the editor. Title will be the first non-empty line
Diffstat (limited to 'doc')
-rw-r--r--doc/bash_completion/git-bug3
-rw-r--r--doc/man/git-bug-new.36
-rw-r--r--doc/md/git-bug_new.md3
3 files changed, 10 insertions, 2 deletions
diff --git a/doc/bash_completion/git-bug b/doc/bash_completion/git-bug
index 0be168de..d8505868 100644
--- a/doc/bash_completion/git-bug
+++ b/doc/bash_completion/git-bug
@@ -375,6 +375,9 @@ _git-bug_new()
flags+=("--message=")
two_word_flags+=("-m")
local_nonpersistent_flags+=("--message=")
+ flags+=("--title=")
+ two_word_flags+=("-t")
+ local_nonpersistent_flags+=("--title=")
must_have_one_flag=()
must_have_one_noun=()
diff --git a/doc/man/git-bug-new.3 b/doc/man/git-bug-new.3
index ea64be68..e184c34a 100644
--- a/doc/man/git-bug-new.3
+++ b/doc/man/git-bug-new.3
@@ -10,7 +10,7 @@ git\-bug\-new \- Create a new bug
.SH SYNOPSIS
.PP
-\fBgit\-bug new <title> [<option>\&...] [flags]\fP
+\fBgit\-bug new [<option>\&...] [flags]\fP
.SH DESCRIPTION
@@ -31,6 +31,10 @@ Create a new bug
\fB\-m\fP, \fB\-\-message\fP=""
Provide a message to describe the issue
+.PP
+\fB\-t\fP, \fB\-\-title\fP=""
+ Provide a title to describe the issue
+
.SH SEE ALSO
.PP
diff --git a/doc/md/git-bug_new.md b/doc/md/git-bug_new.md
index 1a17fcc9..92edeb12 100644
--- a/doc/md/git-bug_new.md
+++ b/doc/md/git-bug_new.md
@@ -7,7 +7,7 @@ Create a new bug
Create a new bug
```
-git-bug new <title> [<option>...] [flags]
+git-bug new [<option>...] [flags]
```
### Options
@@ -16,6 +16,7 @@ git-bug new <title> [<option>...] [flags]
-F, --file string Take the message from the given file. Use - to read the message from the standard input
-h, --help help for new
-m, --message string Provide a message to describe the issue
+ -t, --title string Provide a title to describe the issue
```
### SEE ALSO