We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
git_oid_t
1 parent 6172d45 commit 72ca0b1Copy full SHA for 72ca0b1
libgit2-sys/lib.rs
@@ -1147,12 +1147,21 @@ pub struct git_diff_options {
1147
pub payload: *mut c_void,
1148
pub context_lines: u32,
1149
pub interhunk_lines: u32,
1150
+ pub oid_type: git_oid_t,
1151
pub id_abbrev: u16,
1152
pub max_size: git_off_t,
1153
pub old_prefix: *const c_char,
1154
pub new_prefix: *const c_char,
1155
}
1156
1157
+git_enum! {
1158
+ pub enum git_oid_t {
1159
+ GIT_OID_SHA1 = 1,
1160
+ // SHA256 is still experimental so we are not going to enable it.
1161
+ /* GIT_OID_SHA256 = 2, */
1162
+ }
1163
+}
1164
+
1165
git_enum! {
1166
pub enum git_diff_format_t {
1167
GIT_DIFF_FORMAT_PATCH = 1,
0 commit comments