You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bug add should not open an editor if -m is provided #154
git bug add -t and git bug add -m behave almost the same: add a line and open an editor. The only difference is that git bug add -t add to first line and git bug add -m add to third line.
In my opinion, git bug add -m should directly add the message, without opening an editor, just like what git commit -m does.
PS: git commit -m
-m <msg>, --message=<msg>
Use the given <msg> as the commit message. If multiple -m options are given, their values are concatenated as separate paragraphs.
changed the title [-]behavior of `git bug add -m` is different from `git commit -m`[/-][+]no CLI way to file a bug with a title but no message without opening the editor[/+]on May 27, 2019
changed the title [-]no CLI way to file a bug with a title but no message without opening the editor[/-][+]`bug new` should accept a title and no message without opening a text editor[/+]on Nov 20, 2022
I'm in favor of refactoring this such that "titles" are not a first class citizen, and instead are simply the first line of the message. This is similar to how git handles the "subject" line of the commit message.
In other words, what I'm thinking is that we remove -t | --title altogether, and git bug add would open an editor, whereas git bug add -m "my message here" would set the content, and because it's only a single line, that would also be what we show for the "title".
This is largely how git-bug behaves today, however, -m still opens an editor.
changed the title [-]`bug new` should accept a title and no message without opening a text editor[/-][+]`bug add` should not open an editor if `-m` is provided[/+]on Aug 3, 2024
Activity
MichaelMure commentedon May 26, 2019
Can you explain what you feel is wrong in the behavior ?
zYeoman commentedon May 27, 2019
git bug add -tandgit bug add -mbehave almost the same: add a line and open an editor. The only difference is thatgit bug add -tadd to first line andgit bug add -madd to third line.In my opinion,
git bug add -mshould directly add the message, without opening an editor, just like whatgit commit -mdoes.PS:
git commit -mMichaelMure commentedon May 27, 2019
git bug addneed both a title and a message to create a new bug. I think what you are looking for isgit bug -t "my title" -m "my message".zYeoman commentedon May 27, 2019
Maybe we need a quickly add option to add just one line message (only the title) without editor. Anyway, it's up to you.
I'll try
git bug -t "my title" -m "my message"MichaelMure commentedon May 27, 2019
Hmm, that's a good point. There is no way currently to file a bug with a title but no message without opening the editor.
[-]behavior of `git bug add -m` is different from `git commit -m`[/-][+]no CLI way to file a bug with a title but no message without opening the editor[/+][-]no CLI way to file a bug with a title but no message without opening the editor[/-][+]`bug new` should accept a title and no message without opening a text editor[/+]github-actions commentedon Jul 23, 2024
This bot triages untriaged issues and PRs according to the following rules:
lifecycle/stalelabel is appliedlifecycle/stalewas applied, the issue is closedTo remove the stale status, you can:
lifecycle/stalelabelsudoforge commentedon Aug 3, 2024
I'm in favor of refactoring this such that "titles" are not a first class citizen, and instead are simply the first line of the message. This is similar to how git handles the "subject" line of the commit message.
In other words, what I'm thinking is that we remove
-t | --titlealtogether, andgit bug addwould open an editor, whereasgit bug add -m "my message here"would set the content, and because it's only a single line, that would also be what we show for the "title".This is largely how git-bug behaves today, however,
-mstill opens an editor.[-]`bug new` should accept a title and no message without opening a text editor[/-][+]`bug add` should not open an editor if `-m` is provided[/+]