diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-13 10:36:48 -0400 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2021-09-18 08:32:41 -0400 |
commit | 3f13d2e8a3244018ae4e94d115b419eb84924ed6 (patch) | |
tree | e8579a370933302bfe7ab3457d038421a7777c52 | |
parent | 6aa349667974a521dbe0c7e0f543f9086156689d (diff) | |
download | libgit2-3f13d2e8a3244018ae4e94d115b419eb84924ed6.tar.gz |
email: allow `git_diff_commit_as_email` to take 0 as patch index
Allow a `0` patch index and `0` patch count; in this case, simply don't
display these in the email.
-rw-r--r-- | tests/diff/format_email.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/diff/format_email.c b/tests/diff/format_email.c index bdfc4cac3..6d39b9026 100644 --- a/tests/diff/format_email.c +++ b/tests/diff/format_email.c @@ -327,7 +327,6 @@ void test_diff_format_email__invalid_no(void) cl_git_pass(git_diff__commit(&diff, repo, commit, NULL)); cl_git_fail(git_diff_format_email(&buf, diff, &opts)); cl_git_fail(git_diff_commit_as_email(&buf, repo, commit, 2, 1, 0, NULL)); - cl_git_fail(git_diff_commit_as_email(&buf, repo, commit, 0, 0, 0, NULL)); git_diff_free(diff); git_commit_free(commit); |