diff options
author | Denton Liu <liu.denton@gmail.com> | 2020-01-07 04:53:08 (GMT) |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2020-01-27 20:56:02 (GMT) |
commit | c232ffa83cb3b21e4e6671c50609bfaf5659e899 (patch) | |
tree | 89f8c39d6b407ed7d6325bcd36fcc90ed56ca0e4 /t/t3419-rebase-patch-id.sh | |
parent | a781cd6fefcb40297cdb52cb02e7cb6b940598f2 (diff) | |
download | git-c232ffa83cb3b21e4e6671c50609bfaf5659e899.zip git-c232ffa83cb3b21e4e6671c50609bfaf5659e899.tar.gz git-c232ffa83cb3b21e4e6671c50609bfaf5659e899.tar.bz2 |
t3415: increase granularity of test_auto_{fixup,squash}()
We are using `test_must_fail test_auto_{fixup,squash}` which would
ensure that the function failed. However, this is a little ham-fisted as
there is no way of ensuring that the expected part of the function
actually fails.
Increase the granularity by accepting an optional `!` first argument
which will check that the rebase does not squash in any commits by
ensuring that there are still 4 commits. If `!` is not provided, the old
logic is run.
This patch may be better reviewed with `--ignore-all-space`.
Signed-off-by: Denton Liu <liu.denton@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t3419-rebase-patch-id.sh')
0 files changed, 0 insertions, 0 deletions