Commit 8124333
authored
fix: multi-line tag message when using -m
* fix: multi-line tag message when using -m
Gitflow release finish and hotfix finish allow for a tag message to be
entered from the command line. Currently only the last messeage is read
by git flow if multiple messages are passed in on the command line.
The git binary does not allow for the use of the \n escape sequence when
entering a message from the command line via -m. As a result multiple
invocations of the option must be used for a multi-line commit message.
As a workaround when using the git binary directly we can use printf
inside of the commit message to properly handle \n escape codes. This
allows for a single invocation of -m. To use this workaround inside of
the double quotes we use $(printf 'line of text with \n escape codes
placed as needed for proper formating of the message')
This commit will add the above workaround when entering a tag message
from the command line for release finish and hotfix finish.
* docs: add snapshot release to changelog
* chore: bump version to snapshot release1 parent eca1cb9 commit 8124333
File tree
4 files changed
+11
-5
lines changed4 files changed
+11
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
3 | 9 | | |
4 | 10 | | |
5 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
547 | 547 | | |
548 | 548 | | |
549 | 549 | | |
550 | | - | |
| 550 | + | |
551 | 551 | | |
552 | 552 | | |
553 | 553 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
143 | | - | |
| 143 | + | |
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
345 | | - | |
| 345 | + | |
346 | 346 | | |
347 | 347 | | |
348 | 348 | | |
| |||
889 | 889 | | |
890 | 890 | | |
891 | 891 | | |
892 | | - | |
| 892 | + | |
893 | 893 | | |
894 | 894 | | |
895 | 895 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | | - | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments