diff options
| author | Ben Straub <bs@github.com> | 2013-10-28 06:20:28 -0700 |
|---|---|---|
| committer | Ben Straub <bs@github.com> | 2013-10-28 06:20:28 -0700 |
| commit | 8f4a8b096ba35a2af3f9c51dad7e0402790b58ac (patch) | |
| tree | 80a707dd35672be1f88506c04058b7fad9947fa6 /src/reflog.h | |
| parent | a1efa5960d8f874b92403d875bf08a22c7be2437 (diff) | |
| parent | 0174794a955dbec1e2d9ecf581833fc23c7e844c (diff) | |
| download | libgit2-8f4a8b096ba35a2af3f9c51dad7e0402790b58ac.tar.gz | |
Merge pull request #1802 from libgit2/cmn/reflog-backend
Make reflog part of refdb
Diffstat (limited to 'src/reflog.h')
| -rw-r--r-- | src/reflog.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/reflog.h b/src/reflog.h index 9444ebd10..2d31ae47d 100644 --- a/src/reflog.h +++ b/src/reflog.h @@ -27,9 +27,14 @@ struct git_reflog_entry { }; struct git_reflog { + git_refdb *db; char *ref_name; - git_repository *owner; git_vector entries; }; +GIT_INLINE(size_t) reflog_inverse_index(size_t idx, size_t total) +{ + return (total - 1) - idx; +} + #endif /* INCLUDE_reflog_h__ */ |
