On 22 February 2013 17:28, <
war...@warrenfalk.com> wrote:
> According to the "SubmittingPatches" document of the git repository, the
> offending file is in the git-gui subsystem which has its own maintainer (Pat
> Thoyts). Attached is a patch for the git-gui project which fixes the issue.
>
> I've copied Pat. If there's an official way these patches should be
> submitted, let me know.
inline patches are best as this allows them to be commented on easily.
It's also best to use git-format-patch as this allows you to create a
proper commit message with your email as the author and signoff and so
on. However, this looks ok to me an I can paste in the author details
manually. What we need in the commit message is _why_ this is
necessary. If the problem this patch solves is stated clearly then it
makes it simpler to try and verify this patch actually fixes the
fault. Obviously here you've done that with the initail email -
however, in trying to validate this I installed a copy of Beyond
Compare and configured a repository to use it and arranged to have a
merge to look at. Right clicking and selecting "Run Merge Tool"
successfully launches this tool in both your patched version and the
current non-patched version. So what conditions are required to show
the fault? I tried a repository with spaces in the path which is a
common problem but this was ok too. In my testing I'm using Win7 x64
so the beyond compare tool is in Program Files (x86). I configured the
tool using:
git config merge.tool bc3
git config mergetool.bc3.path "C:\Program Files (x86)\Beyond Compare
3\BCompare.exe"
So - how to test? Otherwise this looks ok. The primary git-gui repo is
at
http://repo.or.cz/r/git-gui.git by the way. This is merged into git
from time to time.
diff --git a/lib/mergetool.tcl b/lib/mergetool.tcl
index 3c8e73b..120bc40 100644
--- a/lib/mergetool.tcl
+++ b/lib/mergetool.tcl
@@ -189,9 +189,9 @@ proc merge_resolve_tool2 {} {
}
bc3 {
if {$base_stage ne {}} {
- set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE"
-mergeoutput="$MERGED"]
+ set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE"
"-mergeoutput=$MERGED"]
} else {
- set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE"
-mergeoutput="$MERGED"]
+ set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE"
"-mergeoutput=$MERGED"]
}
}
ecmerge {