Skip to content

Commit 94beb3a

Browse files
committed
merge: update enum type name for consistency
libgit2 does not use `type_t` suffixes as it's redundant; thus, rename `git_merge_diff_type_t` to `git_merge_diff_t` for consistency.
1 parent a76348e commit 94beb3a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/merge.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ typedef enum {
8484

8585
/* The child of a folder that is in a directory/file conflict. */
8686
GIT_MERGE_DIFF_DF_CHILD = (1 << 11),
87-
} git_merge_diff_type_t;
87+
} git_merge_diff_t;
8888

8989
typedef struct {
9090
git_repository *repo;
@@ -113,7 +113,7 @@ typedef struct {
113113
* Description of changes to one file across three trees.
114114
*/
115115
typedef struct {
116-
git_merge_diff_type_t type;
116+
git_merge_diff_t type;
117117

118118
git_index_entry ancestor_entry;
119119

tests/merge/merge_helpers.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ struct merge_index_conflict_data {
3636
struct merge_index_with_status ancestor;
3737
struct merge_index_with_status ours;
3838
struct merge_index_with_status theirs;
39-
git_merge_diff_type_t change_type;
39+
git_merge_diff_t change_type;
4040
};
4141

4242
int merge_trees_from_branches(

0 commit comments

Comments
 (0)