summaryrefslogtreecommitdiff
path: root/git-gui/lib/branch_create.tcl
diff options
context:
space:
mode:
authorDerrick Stolee <stolee@gmail.com>2018-11-07 20:40:31 -0800
committerJunio C Hamano <gitster@pobox.com>2018-11-08 14:23:54 +0900
commit80cee6e3210120a8a45fc4818e0049f482247b0f (patch)
tree4ee78d79433a13358a90704610eaf740f11c64f6 /git-gui/lib/branch_create.tcl
parentb8cd1bb71306e489d73e5cf4ef75a6cdb4c223b7 (diff)
merge-recursive: combine error handling
In handle_rename_rename_1to2(), we have duplicated error handling around colliding paths. Specifically, when we want to write out the file and there is a directory or untracked file in the way, we need to create a temporary file to hold the contents. This has some special output to alert the user, and this output is duplicated for each side of the conflict. Simplify the call by generating this new path in a helper function. Signed-off-by: Derrick Stolee <dstolee@microsoft.com> Signed-off-by: Elijah Newren <newren@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-gui/lib/branch_create.tcl')
0 files changed, 0 insertions, 0 deletions