diff options
| author | Carlos Martín Nieto <cmn@dwim.me> | 2013-11-14 19:41:09 +0100 |
|---|---|---|
| committer | Carlos Martín Nieto <cmn@dwim.me> | 2013-11-23 14:55:02 +0100 |
| commit | 13c9e44af9424e1fc478693f0d64fbf7082c9665 (patch) | |
| tree | ee83aff81f705c882ce13ccc37006a733c4f54f4 /src | |
| parent | a57dd3b7a46c9a2f87f203f1ab372fa28e10e571 (diff) | |
| download | libgit2-13c9e44af9424e1fc478693f0d64fbf7082c9665.tar.gz | |
reflog: remove git_reflog_append_to()
This was a convenience method for the refs front-end to do the reflog
writing. This is now done in the backend and it has no more reason for
being.
Diffstat (limited to 'src')
| -rw-r--r-- | src/reflog.c | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/reflog.c b/src/reflog.c index cebb87d86..9b2b201bf 100644 --- a/src/reflog.c +++ b/src/reflog.c @@ -230,22 +230,3 @@ int git_reflog_drop(git_reflog *reflog, size_t idx, int rewrite_previous_entry) return 0; } - -int git_reflog_append_to(git_repository *repo, const char *name, const git_oid *id, - const git_signature *committer, const char *msg) -{ - int error; - git_reflog *reflog; - - if ((error = git_reflog_read(&reflog, repo, name)) < 0) - return error; - - if ((error = git_reflog_append(reflog, id, committer, msg)) < 0) - goto cleanup; - - error = git_reflog_write(reflog); - -cleanup: - git_reflog_free(reflog); - return error; -} |
