You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<7> Rugged (and Libgit2) can optionally update a reference when making a commit.
107
107
<8> The return value is the SHA-1 hash of a new commit object, which you can then use to get a `Commit` object.
108
108
109
+
The Ruby code is pretty clean, but since Libgit2 is doing the heavy lifting, this code will run pretty fast, too.
110
+
109
111
110
112
==== Advanced Functionality
111
113
112
-
// TODO: backend, remote
114
+
Libgit2 has a couple of capabilities that are outside the scope of core Git.
115
+
One example is pluggability: Libgit2 allows you to provide custom ``backends'' for several types of operation, so you can store things in a different way than stock Git does.
116
+
Libgit2 allows custom backends for configuration, ref storage, and the object database, among other things.
117
+
118
+
Let's take a look at how this works.
119
+
The code below is borrowed from the set of backend examples provided by the Libgit2 team (which can be found at https://github.com/libgit2/libgit2-backends[]).
120
+
Here's how a custom backend for the object database is set up.
0 commit comments