summaryrefslogtreecommitdiff
path: root/examples/blame.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 /examples/blame.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 'examples/blame.c')
-rw-r--r--examples/blame.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/blame.c b/examples/blame.c
index fa586b31e..8484c9f05 100644
--- a/examples/blame.c
+++ b/examples/blame.c
@@ -72,7 +72,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[])
* Get the raw data inside the blob for output. We use the
* `commitish:path/to/file.txt` format to find it.
*/
- if (git_oid_iszero(&blameopts.newest_commit))
+ if (git_oid_is_zero(&blameopts.newest_commit))
strcpy(spec, "HEAD");
else
git_oid_tostr(spec, sizeof(spec), &blameopts.newest_commit);
@@ -101,7 +101,7 @@ int lg2_blame(git_repository *repo, int argc, char *argv[])
if (hunk) {
char sig[128] = {0};
break_on_null_hunk = 1;
-
+
git_oid_tostr(oid, 10, &hunk->final_commit_id);
snprintf(sig, 30, "%s <%s>", hunk->final_signature->name, hunk->final_signature->email);