Pro Git 2nd Edition 2.1.413allows you to provide custom “backends” for several types of operation, so you can store things in a different way than stock Git does. Libgit2 allows custom backends for configuration, ref storage examples provided by the Libgit2 team (which can be found at https://github.com/libgit2/libgit2-backends). Here’s how a custom backend for the object database is set up: git_odb *odb; int error = git_odb_new(&odb); Initialize an empty object database (ODB) “frontend,” which will act as a container for the “backends” which are the ones doing the real work. Initialize a custom ODB backend. Add the backend to the0 码力 | 731 页 | 21.49 MB | 1 年前3
Pro Git 2nd Edition 2.1.413Libgit2 allows you to provide custom “backends” for several types of operation, so you can store things in a different way than stock Git does. Libgit2 allows custom backends for 468 configuration, ref storage examples provided by the Libgit2 team (which can be found at https://github.com/libgit2/libgit2-backends). Here’s how a custom backend for the object database is set up: git_odb *odb; int error = git_odb_new(&odb); ① Initialize an empty object database (ODB) “frontend,” which will act as a container for the “backends” which are the ones doing the real work. ② Initialize a custom ODB backend. ③ Add the backend0 码力 | 501 页 | 17.96 MB | 1 年前3
Pro Git 2nd Edition 2.1.413 allows you to provide custom “backends” for several types of operation, so you can store things in a different way than stock Git does. Libgit2 allows custom backends for configuration, ref storage examples provided by the Libgit2 team (which can be found at https://github.com/libgit2/libgit2-backends). Here’s how a custom backend for the object database is set up: git_odb *odb; int error = git_odb_new(&odb); Initialize an empty object database (ODB) “frontend,” which will act as a container for the “backends” which are the ones doing the real work. Initialize a custom ODB backend. Add the backend to the0 码力 | 691 页 | 13.35 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66允许为自定义后端指定配置、引用的存储以及对 象数据库, 我们来看一下它究竟是怎么工作的。 下面的例子借用自 Libgit2 团队提供的后端样本集 (可以在 https://github.com/libgit2/libgit2-backends 上找到)。 一个对象数据库的自定义后端是这样建立的: git_odb *odb; int error = git_odb_new(&odb); ① git_odb_backend *my_backend;0 码力 | 501 页 | 19.30 MB | 1 年前3
Pro Git 中文版 第2版 2.1.66允许为自定义后端指定配置、引用的存储以及对象数据库, 我们来看一下它究竟是怎么工作的。 下面的例子借用自 Libgit2 团队提供的后 端样本集 (可以在 https://github.com/libgit2/libgit2-backends 上找到)。 一个对象数据库的自定义后端是这样建立的: git_odb *odb; int error = git_odb_new(&odb); ① git_odb_backend *my_backend;0 码力 | 670 页 | 13.59 MB | 1 年前3
共 5 条
- 1













