Commit 1ccbeac
committed
feat: respect core.commentChar setting for escaping comment characters in commit messages
Bring StGit in parity with git's behavior for comment characters. Setting
`core.commentChar` to a value other than '#' allows the use of certain markup
like markdown in commit messages. Git for that reason allows overriding the
comment character to any string value.
This change incurs a small amount of extra allocations for constructing strings
at runtime taking into account the user's choice of comment character.
issue: 6001 parent f88c7f0 commit 1ccbeac
File tree
5 files changed
+298
-68
lines changed- src
- ext
- patch/edit
- t
5 files changed
+298
-68
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
81 | 88 | | |
82 | 89 | | |
83 | 90 | | |
| |||
330 | 337 | | |
331 | 338 | | |
332 | 339 | | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
333 | 357 | | |
0 commit comments