]> git.ipfire.org Git - thirdparty/git.git/commit - wt-status.c
wt-status.c: set the committable flag in the collect phase
authorStephen P. Smith <ischis2@cox.net>
Thu, 6 Sep 2018 00:53:29 +0000 (17:53 -0700)
committerJunio C Hamano <gitster@pobox.com>
Fri, 7 Sep 2018 21:39:05 +0000 (14:39 -0700)
commitf3bd35fa0dd6fcc8aaab1f9281d98cee5add2e4f
tree14e1360c7da90c6c8af1e60d008208c54439dca6
parent8282f59f90b8d864f245dd04a79106b9e620e137
wt-status.c: set the committable flag in the collect phase

In an update to fix a bug with "commit --dry-run" it was found that
the committable flag was broken. The update was, at the time, accepted
as it was better than the previous version. [1]

Since the setting of the committable flag had been done in
wt_longstatus_print_updated, move it to wt_status_collect_updated_cb.

Set the committable flag in wt_status_collect_changes_initial to keep
from introducing a rebase regression.

Instead of setting the committable flag in show_merge_in_progress, in
wt_status_cllect check for a merge that has not been committed. If
present then set the committable flag.

Change the tests to expect success since updates to the wt-status
broken code section is being fixed.

[1] https://public-inbox.org/git/xmqqr3gcj9i5.fsf@gitster.mtv.corp.google.com/

Signed-off-by: Stephen P. Smith <ischis2@cox.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t7501-commit.sh
wt-status.c