notes-20230418
dyrone
tagged this
24 Apr 13:21
This commit introduces a new option "--[no]-stripspace" to git notes append, git notes edit, and git notes add. This option allows users to control whether the note message need to stripped out. The default value of this option is "true", which means the note message will be stripped out by default. If the user wants to preserve the note message, can use "--no-stripspace" option. There are two reasons why we need this option: 1. The note message is stripped out by default, which is not consistent with the behavior of "git commit" command. This may confuse users. 2. The note message is stripped out by default, which is not consistent with the behavior of "git notes show" command. This may confuse users. Signed-off-by: Teng Long <[email protected]>