From e203d1dcba995e03b78f029aef452450e611d91f Mon Sep 17 00:00:00 2001 From: Chris Packham Date: Sun, 2 Nov 2014 21:37:50 +1300 Subject: [PATCH 01/10] gitk: Default wrcomcmd to use --pretty=email This makes the "Write commit to file" context menu option generate a file that is consumable by 'git am'. Signed-off-by: Chris Packham Signed-off-by: Paul Mackerras --- gitk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitk b/gitk index 78358a712ae764..462f966948f287 100755 --- a/gitk +++ b/gitk @@ -11936,7 +11936,7 @@ if { [info exists ::env(GIT_TRACE)] } { } # defaults... -set wrcomcmd "git diff-tree --stdin -p --pretty" +set wrcomcmd "git diff-tree --stdin -p --pretty=email" set gitencoding {} catch { From 122b80799249be33e66a4f716fdca6d80635a05e Mon Sep 17 00:00:00 2001 From: Gabriele Mazzotta Date: Sat, 15 Nov 2014 15:05:06 +0100 Subject: [PATCH 02/10] gitk: Enable mouse horizontal scrolling in diff pane Currently it's required to hold Shift and scroll up and down to move horizontally. Listen to Button-6 and Button-7 events too to make horizontal scrolling handier with touchpads and some mice. Signed-off-by: Gabriele Mazzotta Signed-off-by: Paul Mackerras --- gitk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gitk b/gitk index 462f966948f287..d42f28340f7174 100755 --- a/gitk +++ b/gitk @@ -2516,6 +2516,13 @@ proc makewindow {} { } else { bindall "allcanvs yview scroll -5 units" bindall "allcanvs yview scroll 5 units" + bind $ctext