Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
e1807113
Commit
e1807113
authored
May 01, 2013
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge: Warning noise
parent
2ba55c1f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
15 deletions
+8
-15
src/checkout.c
+1
-0
src/index.c
+3
-0
src/merge.c
+1
-1
tests-clar/merge/merge_helpers.c
+3
-3
tests-clar/merge/trees/treediff.c
+0
-11
No files found.
src/checkout.c
View file @
e1807113
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
#include "git2/config.h"
#include "git2/config.h"
#include "git2/diff.h"
#include "git2/diff.h"
#include "git2/submodule.h"
#include "git2/submodule.h"
#include "git2/sys/index.h"
#include "refs.h"
#include "refs.h"
#include "repository.h"
#include "repository.h"
...
...
src/index.c
View file @
e1807113
...
@@ -209,6 +209,9 @@ static int conflict_name_cmp(const void *a, const void *b)
...
@@ -209,6 +209,9 @@ static int conflict_name_cmp(const void *a, const void *b)
return
strcmp
(
name_a
->
ours
,
name_b
->
ours
);
return
strcmp
(
name_a
->
ours
,
name_b
->
ours
);
}
}
/**
* TODO: enable this when resolving case insensitive conflicts
*/
static
int
conflict_name_icmp
(
const
void
*
a
,
const
void
*
b
)
static
int
conflict_name_icmp
(
const
void
*
a
,
const
void
*
b
)
{
{
const
git_index_name_entry
*
name_a
=
a
;
const
git_index_name_entry
*
name_a
=
a
;
...
...
src/merge.c
View file @
e1807113
...
@@ -1269,7 +1269,7 @@ int git_merge_diff_list__find_differences(
...
@@ -1269,7 +1269,7 @@ int git_merge_diff_list__find_differences(
const
git_tree
*
their_tree
)
const
git_tree
*
their_tree
)
{
{
git_iterator
*
iterators
[
3
]
=
{
0
};
git_iterator
*
iterators
[
3
]
=
{
0
};
git_index_entry
*
items
[
3
]
=
{
0
},
*
best_cur_item
,
*
cur_items
[
3
];
const
git_index_entry
*
items
[
3
]
=
{
0
},
*
best_cur_item
,
*
cur_items
[
3
];
git_vector_cmp
entry_compare
=
git_index_entry__cmp
;
git_vector_cmp
entry_compare
=
git_index_entry__cmp
;
struct
merge_diff_df_data
df_data
=
{
0
};
struct
merge_diff_df_data
df_data
=
{
0
};
int
cur_item_modified
;
int
cur_item_modified
;
...
...
tests-clar/merge/merge_helpers.c
View file @
e1807113
...
@@ -52,7 +52,7 @@ int merge_trees_from_branches(
...
@@ -52,7 +52,7 @@ int merge_trees_from_branches(
return
0
;
return
0
;
}
}
static
void
dump_index_entries
(
git_vector
*
index_entries
)
void
merge__
dump_index_entries
(
git_vector
*
index_entries
)
{
{
size_t
i
;
size_t
i
;
const
git_index_entry
*
index_entry
;
const
git_index_entry
*
index_entry
;
...
@@ -70,7 +70,7 @@ static void dump_index_entries(git_vector *index_entries)
...
@@ -70,7 +70,7 @@ static void dump_index_entries(git_vector *index_entries)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
static
void
dump_names
(
git_index
*
index
)
void
merge__
dump_names
(
git_index
*
index
)
{
{
size_t
i
;
size_t
i
;
const
git_index_name_entry
*
conflict_name
;
const
git_index_name_entry
*
conflict_name
;
...
@@ -83,7 +83,7 @@ static void dump_names(git_index *index)
...
@@ -83,7 +83,7 @@ static void dump_names(git_index *index)
printf
(
"
\n
"
);
printf
(
"
\n
"
);
}
}
static
void
dump_reuc
(
git_index
*
index
)
void
merge__
dump_reuc
(
git_index
*
index
)
{
{
size_t
i
;
size_t
i
;
const
git_index_reuc_entry
*
reuc
;
const
git_index_reuc_entry
*
reuc
;
...
...
tests-clar/merge/trees/treediff.c
View file @
e1807113
...
@@ -33,13 +33,6 @@ void test_merge_trees_treediff__cleanup(void)
...
@@ -33,13 +33,6 @@ void test_merge_trees_treediff__cleanup(void)
cl_git_sandbox_cleanup
();
cl_git_sandbox_cleanup
();
}
}
struct
treediff_cb_data
{
struct
merge_index_conflict_data
*
conflict_data
;
size_t
conflict_data_len
;
size_t
idx
;
};
static
void
test_find_differences
(
static
void
test_find_differences
(
const
char
*
ancestor_oidstr
,
const
char
*
ancestor_oidstr
,
const
char
*
ours_oidstr
,
const
char
*
ours_oidstr
,
...
@@ -50,7 +43,6 @@ static void test_find_differences(
...
@@ -50,7 +43,6 @@ static void test_find_differences(
git_merge_diff_list
*
merge_diff_list
=
git_merge_diff_list__alloc
(
repo
);
git_merge_diff_list
*
merge_diff_list
=
git_merge_diff_list__alloc
(
repo
);
git_oid
ancestor_oid
,
ours_oid
,
theirs_oid
;
git_oid
ancestor_oid
,
ours_oid
,
theirs_oid
;
git_tree
*
ancestor_tree
,
*
ours_tree
,
*
theirs_tree
;
git_tree
*
ancestor_tree
,
*
ours_tree
,
*
theirs_tree
;
struct
treediff_cb_data
treediff_cb_data
=
{
0
};
git_merge_tree_opts
opts
=
GIT_MERGE_TREE_OPTS_INIT
;
git_merge_tree_opts
opts
=
GIT_MERGE_TREE_OPTS_INIT
;
opts
.
flags
|=
GIT_MERGE_TREE_FIND_RENAMES
;
opts
.
flags
|=
GIT_MERGE_TREE_FIND_RENAMES
;
...
@@ -82,9 +74,6 @@ static void test_find_differences(
...
@@ -82,9 +74,6 @@ static void test_find_differences(
*/
*/
cl_assert
(
treediff_conflict_data_len
==
merge_diff_list
->
conflicts
.
length
);
cl_assert
(
treediff_conflict_data_len
==
merge_diff_list
->
conflicts
.
length
);
treediff_cb_data
.
conflict_data
=
treediff_conflict_data
;
treediff_cb_data
.
conflict_data_len
=
treediff_conflict_data_len
;
cl_assert
(
merge_test_merge_conflicts
(
&
merge_diff_list
->
conflicts
,
treediff_conflict_data
,
treediff_conflict_data_len
));
cl_assert
(
merge_test_merge_conflicts
(
&
merge_diff_list
->
conflicts
,
treediff_conflict_data
,
treediff_conflict_data_len
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment