X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=builtin-reflog.c;h=e23b5ef979d98e5e44693345856a13485695246f;hb=98df233e2d7d815b1f2e2e253b9d6c6ce1bfe58f;hp=ddfdf5a3cbc79003dfbad14af8d1f047e3594aa6;hpb=037e9d5b1575d7ede05b50c317d9d88258556d84;p=git.git diff --git a/builtin-reflog.c b/builtin-reflog.c index ddfdf5a3c..e23b5ef97 100644 --- a/builtin-reflog.c +++ b/builtin-reflog.c @@ -362,7 +362,7 @@ static int expire_reflog(const char *ref, const unsigned char *sha1, int unused, } else if (cmd->updateref && (write_in_full(lock->lock_fd, sha1_to_hex(cb.last_kept_sha1), 40) != 40 || - write_in_full(lock->lock_fd, "\n", 1) != 1 || + write_str_in_full(lock->lock_fd, "\n") != 1 || close_ref(lock) < 0)) { status |= error("Couldn't write %s", lock->lk->filename); @@ -694,7 +694,7 @@ static int cmd_reflog_delete(int argc, const char **argv, const char *prefix) */ static const char reflog_usage[] = -"git reflog (expire | ...)"; +"git reflog [ show | expire | delete ]"; int cmd_reflog(int argc, const char **argv, const char *prefix) {