diff options
| author | Edward Thomson <ethomson@microsoft.com> | 2013-07-23 15:32:42 -0700 |
|---|---|---|
| committer | Edward Thomson <ethomson@microsoft.com> | 2013-10-16 16:20:10 -0400 |
| commit | 96d799aa1830f5fcbacdfd87eca728727561d8e6 (patch) | |
| tree | 83d1c7e2a7951263b7bf7b34f45ab08629784999 /src/checkout_conflicts.c | |
| parent | 4f7897ab19daf6593b35c7f5b4f35403d00530ef (diff) | |
| download | libgit2-96d799aa1830f5fcbacdfd87eca728727561d8e6.tar.gz | |
checkout rename conflicts
rename conflict tests for checkout conflicts, don't suffix filenames
when checking out with USE_OURS or USE_THEIRS
Diffstat (limited to 'src/checkout_conflicts.c')
| -rw-r--r-- | src/checkout_conflicts.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/checkout_conflicts.c b/src/checkout_conflicts.c index 0c9c768df..45e43a324 100644 --- a/src/checkout_conflicts.c +++ b/src/checkout_conflicts.c @@ -395,7 +395,10 @@ static int checkout_write_entry( if (git_buf_puts(&data->path, side->path) < 0) return -1; - if (conflict->name_collision || conflict->directoryfile) { + if ((conflict->name_collision || conflict->directoryfile) && + (data->strategy & GIT_CHECKOUT_USE_OURS) == 0 && + (data->strategy & GIT_CHECKOUT_USE_THEIRS) == 0) { + if (side == conflict->ours) side_label = data->opts.our_label ? data->opts.our_label : "ours"; |
