summaryrefslogtreecommitdiff
path: root/src/diff_print.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2019-06-08 17:28:35 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2019-06-16 00:16:47 +0100
commit5d92e54745eaad2c89aa6457d504411ceee3a4f4 (patch)
tree2b417c13f9bc008dff9bad153eeb5b74c5a09fb8 /src/diff_print.c
parentfef847ae57d74e93563bc04222d9da7007fffc4f (diff)
downloadlibgit2-5d92e54745eaad2c89aa6457d504411ceee3a4f4.tar.gz
oid: `is_zero` instead of `iszero`
The only function that is named `issomething` (without underscore) was `git_oid_iszero`. Rename it to `git_oid_is_zero` for consistency with the rest of the library.
Diffstat (limited to 'src/diff_print.c')
-rw-r--r--src/diff_print.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/diff_print.c b/src/diff_print.c
index 8705615a0..e1a25a959 100644
--- a/src/diff_print.c
+++ b/src/diff_print.c
@@ -325,10 +325,10 @@ static int diff_delta_format_with_paths(
const char *oldpath,
const char *newpath)
{
- if (git_oid_iszero(&delta->old_file.id))
+ if (git_oid_is_zero(&delta->old_file.id))
oldpath = "/dev/null";
- if (git_oid_iszero(&delta->new_file.id))
+ if (git_oid_is_zero(&delta->new_file.id))
newpath = "/dev/null";
return git_buf_printf(out, template, oldpath, newpath);
@@ -381,8 +381,8 @@ done:
static bool delta_is_unchanged(const git_diff_delta *delta)
{
- if (git_oid_iszero(&delta->old_file.id) &&
- git_oid_iszero(&delta->new_file.id))
+ if (git_oid_is_zero(&delta->old_file.id) &&
+ git_oid_is_zero(&delta->new_file.id))
return true;
if (delta->old_file.mode == GIT_FILEMODE_COMMIT ||