diff options
author | Alban Gruin <alban.gruin@gmail.com> | 2019-11-24 18:43:28 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2019-11-25 12:24:48 +0900 |
commit | 8638114e063f60fef678d51ca904da7c4e1ab3c0 (patch) | |
tree | 2505792cee2cd6112a90c553e1e5a0bf57f52943 /t/chainlint/multi-line-string.test | |
parent | Fourth batch (diff) | |
download | tgif-8638114e063f60fef678d51ca904da7c4e1ab3c0.tar.xz |
sequencer: update `total_nr' when adding an item to a todo list
`total_nr' is the total number of items, counting both done and todo,
that are in a todo list. But unlike `nr', it was not updated when an
item was appended to the list.
This variable is mostly used by command prompts (ie. git-prompt.sh and
the like). By forgetting to update it, the original code made it not
reflect the reality, but this flaw was masked by the code calling
unnecessarily read_populate_todo() again to update the variable to its
correct value. At the end of this series, the unnecessary call will be
removed, and the inconsistency addressed by this patch would start to
matter.
Signed-off-by: Alban Gruin <alban.gruin@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/chainlint/multi-line-string.test')
0 files changed, 0 insertions, 0 deletions