[PATCH 0/3] suppress trailing whitespace on empty "notes" lines
- From
Eric Sunshine <sunshine@sunshineco.com>
- Date
- Aug 30, 2021, 07:21 UTC
- Message-ID
- <20210830072118.91921-1-sunshine@sunshineco.com>
This patch series fixes a problem in which `git format-patch --notes` and `git log` unconditionally indent _all_ "notes" lines, including those which are empty, which ends up leaving (unwanted) trailing whitespace on the previously empty lines. The first couple patches adjust some existing notes-related tests -- which undesirably hard-code those indented blank notes lines -- to be less brittle since they would otherwise break by the change made in the final patch which fixes the actual problem.
Eric Sunshine (3): t3301: tolerate minor notes-related presentation changes t3303/t9301: make `notes` tests less brittle notes: don't indent empty lines
notes.c | 2 +- t/t3301-notes.sh | 321 ++++++++++++++++++----------------- t/t3303-notes-subtrees.sh | 13 +- t/t4014-format-patch.sh | 17 ++ t/t9301-fast-import-notes.sh | 36 ++-- 5 files changed, 207 insertions(+), 182 deletions(-)
-- 2.33.0.153.gba50c8fa24