vendor/libgit2/include/git2/merge.h in rugged-0.28.3.1 vs vendor/libgit2/include/git2/merge.h in rugged-0.28.4

- old
+ new

@@ -55,11 +55,11 @@ * @param opts the `git_merge_file_input` instance to initialize. * @param version the version of the struct; you should pass * `GIT_MERGE_FILE_INPUT_VERSION` here. * @return Zero on success; -1 on failure. */ -GIT_EXTERN(int) git_merge_file_init_input( +GIT_EXTERN(int) git_merge_file_input_init( git_merge_file_input *opts, unsigned int version); /** * Flags for `git_merge` options. A combination of these flags can be @@ -190,11 +190,11 @@ /** The file to favor in region conflicts. */ git_merge_file_favor_t favor; /** see `git_merge_file_flag_t` above */ - git_merge_file_flag_t flags; + uint32_t flags; /** The size of conflict markers (eg, "<<<<<<<"). Default is * GIT_MERGE_CONFLICT_MARKER_SIZE. */ unsigned short marker_size; } git_merge_file_options; @@ -210,13 +210,11 @@ * * @param opts The `git_merge_file_options` struct to initialize. * @param version The struct version; pass `GIT_MERGE_FILE_OPTIONS_VERSION`. * @return Zero on success; -1 on failure. */ -GIT_EXTERN(int) git_merge_file_init_options( - git_merge_file_options *opts, - unsigned int version); +GIT_EXTERN(int) git_merge_file_options_init(git_merge_file_options *opts, unsigned int version); /** * Information about file-level merging */ typedef struct { @@ -247,11 +245,11 @@ */ typedef struct { unsigned int version; /** See `git_merge_flag_t` above */ - git_merge_flag_t flags; + uint32_t flags; /** * Similarity to consider a file renamed (default 50). If * `GIT_MERGE_FIND_RENAMES` is enabled, added files will be compared * with deleted files to determine their similarity. Files that are @@ -291,11 +289,11 @@ * (`text`) merge driver. */ git_merge_file_favor_t file_favor; /** see `git_merge_file_flag_t` above */ - git_merge_file_flag_t file_flags; + uint32_t file_flags; } git_merge_options; #define GIT_MERGE_OPTIONS_VERSION 1 #define GIT_MERGE_OPTIONS_INIT { \ GIT_MERGE_OPTIONS_VERSION, GIT_MERGE_FIND_RENAMES } @@ -308,12 +306,10 @@ * * @param opts The `git_merge_options` struct to initialize. * @param version The struct version; pass `GIT_MERGE_OPTIONS_VERSION`. * @return Zero on success; -1 on failure. */ -GIT_EXTERN(int) git_merge_init_options( - git_merge_options *opts, - unsigned int version); +GIT_EXTERN(int) git_merge_options_init(git_merge_options *opts, unsigned int version); /** * The results of `git_merge_analysis` indicate the merge opportunities. */ typedef enum {