Commit a492d53
merge-ort: ensure we consult df_conflict and path_conflicts
Path conflicts (typically rename path conflicts, e.g.
rename/rename(1to2) or rename/add/delete), and directory/file conflicts
should obviously result in files not being marked as clean in the merge.
We had a codepath where we missed consulting the path_conflict and
df_conflict flags, based on match_mask. Granted, it requires an unusual
setup to trigger this codepath (directory rename causing rename-to-self
is the only case I can think of), but we still need to handle it. To
make it clear that we have audited the other codepaths that do not
explicitly mention these flags, add some assertions that the flags are
not set.
Reported-by: Anders Kaseorg <andersk@mit.edu>
Signed-off-by: Elijah Newren <newren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>1 parent 806f832 commit a492d53
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3002 | 3002 | | |
3003 | 3003 | | |
3004 | 3004 | | |
3005 | | - | |
| 3005 | + | |
3006 | 3006 | | |
3007 | 3007 | | |
3008 | 3008 | | |
| |||
3014 | 3014 | | |
3015 | 3015 | | |
3016 | 3016 | | |
| 3017 | + | |
| 3018 | + | |
3017 | 3019 | | |
3018 | 3020 | | |
3019 | 3021 | | |
| |||
3186 | 3188 | | |
3187 | 3189 | | |
3188 | 3190 | | |
| 3191 | + | |
3189 | 3192 | | |
3190 | 3193 | | |
3191 | 3194 | | |
| |||
3212 | 3215 | | |
3213 | 3216 | | |
3214 | 3217 | | |
| 3218 | + | |
3215 | 3219 | | |
3216 | 3220 | | |
3217 | 3221 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5000 | 5000 | | |
5001 | 5001 | | |
5002 | 5002 | | |
5003 | | - | |
| 5003 | + | |
5004 | 5004 | | |
5005 | 5005 | | |
5006 | 5006 | | |
| |||
5058 | 5058 | | |
5059 | 5059 | | |
5060 | 5060 | | |
5061 | | - | |
| 5061 | + | |
5062 | 5062 | | |
5063 | 5063 | | |
5064 | 5064 | | |
| |||
5116 | 5116 | | |
5117 | 5117 | | |
5118 | 5118 | | |
5119 | | - | |
| 5119 | + | |
5120 | 5120 | | |
5121 | 5121 | | |
5122 | 5122 | | |
| |||
0 commit comments