* [RFC] gitk using diff-tree -M for merges
@ 2007-05-11 8:45 Uwe Kleine-König
0 siblings, 0 replies; only message in thread
From: Uwe Kleine-König @ 2007-05-11 8:45 UTC (permalink / raw)
To: git
Hello,
looking at the diff that commit 070739fd351702ea9bb4f65595728ae25a488075
introduced with gitk from 1.5.2-rc3 [1], I'd prefer gitk using the
option -M for diff-tree to detect that in 3f28f63f git-gui.sh exists,
too. Currently the diff is a bit longer that the whole file, with -M it
would be empty.
Probably using -M hurts performance, so it should better be a config
option?
Below is a patch that hardcodes -M, I didn't check if there are more
places where it should be added.
What do you think?
Best regards
Uwe
[1] the following is a nice view:
gitk 070739fd351702ea9bb4f65595728ae25a488075 ^53a58245863eff3d70aaa3ac75d7d57e843fc91d^ ^e701ccc3883959b4ba5fada7a903e8e9eaddcba7
diff --git a/gitk b/gitk
index a57e84c..bcc4637 100755
--- a/gitk
+++ b/gitk
@@ -4240,7 +4240,7 @@ proc mergediff {id l} {
set diffids $id
# this doesn't seem to actually affect anything...
set env(GIT_DIFF_OPTS) $diffopts
- set cmd [concat | git diff-tree --no-commit-id --cc $id]
+ set cmd [concat | git diff-tree -M --no-commit-id --cc $id]
if {[catch {set mdf [open $cmd r]} err]} {
error_popup "Error getting merge diffs: $err"
return
--
Uwe Kleine-König
http://www.google.com/search?q=1+electron+mass%3D
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-05-11 8:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-11 8:45 [RFC] gitk using diff-tree -M for merges Uwe Kleine-König
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).