diff options
| author | Phillip Wood <phillip.wood@dunelm.org.uk> | 2026-06-23 16:53:56 +0100 |
|---|---|---|
| committer | Junio C Hamano <gitster@pobox.com> | 2026-06-23 12:18:48 -0700 |
| commit | 10c2678a2bfbd2a3e8d0a3623d1b71b6cc916253 (patch) | |
| tree | ba88fd6064e777688304fd1e354a42335718ae9a /t/t4013/diff.diff_initial..side | |
| parent | 94f057755b7941b321fd11fec1b2e3ca5313a4e0 (diff) | |
sequencer: factor out parsing of todo commands
Move the code that parses todo commands into a separate function so
that it can be shared with "git status" in the next commit. As we
know the input is NUL terminated we do not pass a pointer to the end
of the line and instead test for a blank line by looking for NUL, CR
LF, or LF. We use starts_with() instead of starts_with_mem() for the
same reason. This results in slightly different behavior when there
a CR at the start of the line that is not followed by LF. Previously
such a line was treated as a comment rather than an invalid line.
Signed-off-by: Phillip Wood <phillip.wood@dunelm.org.uk>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff_initial..side')
0 files changed, 0 insertions, 0 deletions
