vendor/libgit2/include/git2/merge.h in rugged-0.22.0b4 vs vendor/libgit2/include/git2/merge.h in rugged-0.22.0b5
- old
+ new
@@ -108,24 +108,30 @@
* record a conflict.
*/
GIT_MERGE_FILE_FAVOR_UNION = 3,
} git_merge_file_favor_t;
+/**
+ * File merging flags
+ */
typedef enum {
- /* Defaults */
+ /** Defaults */
GIT_MERGE_FILE_DEFAULT = 0,
- /* Create standard conflicted merge files */
+ /** Create standard conflicted merge files */
GIT_MERGE_FILE_STYLE_MERGE = (1 << 0),
- /* Create diff3-style files */
+ /** Create diff3-style files */
GIT_MERGE_FILE_STYLE_DIFF3 = (1 << 1),
- /* Condense non-alphanumeric regions for simplified diff file */
+ /** Condense non-alphanumeric regions for simplified diff file */
GIT_MERGE_FILE_SIMPLIFY_ALNUM = (1 << 2),
} git_merge_file_flags_t;
+/**
+ * Options for merging a file
+ */
typedef struct {
unsigned int version;
/**
* Label for the ancestor file side of the conflict which will be prepended
@@ -166,10 +172,13 @@
*/
GIT_EXTERN(int) git_merge_file_init_options(
git_merge_file_options *opts,
unsigned int version);
+/**
+ * Information about file-level merging
+ */
typedef struct {
/**
* True if the output was automerged, false if the output contains
* conflict markers.
*/
@@ -189,10 +198,13 @@
/** The length of the merge contents. */
size_t len;
} git_merge_file_result;
+/**
+ * Merging options
+ */
typedef struct {
unsigned int version;
git_merge_tree_flag_t flags;
/**
@@ -268,11 +280,14 @@
* to simply set HEAD to the target commit(s).
*/
GIT_MERGE_ANALYSIS_UNBORN = (1 << 3),
} git_merge_analysis_t;
+/**
+ * The user's stated preference for merges.
+ */
typedef enum {
- /*
+ /**
* No configuration was found that suggests a preferred behavior for
* merge.
*/
GIT_MERGE_PREFERENCE_NONE = 0,