chiark
/
gitweb
/
~ian
/
ian-dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4be4518
)
gitk: copy existing geometry when substituting
author
Ian Jackson
<ian.jackson@eu.citrix.com>
Thu, 13 Sep 2018 16:47:57 +0000
(17:47 +0100)
committer
Ian Jackson
<ian.jackson@eu.citrix.com>
Thu, 13 Sep 2018 16:47:57 +0000
(17:47 +0100)
templates/gitk.in
patch
|
blob
|
history
diff --git
a/templates/gitk.in
b/templates/gitk.in
index d821e162bbec6c26c861b379fdcc57f8c56204de..3d11b5b822da6d8265b961f005a277b4c8e84c27 100755
(executable)
--- a/
templates/gitk.in
+++ b/
templates/gitk.in
@@
-70,13
+70,14
@@
set indexcirclecolor green
set circlecolors {white blue gray blue blue}
set linkfgcolor blue
set circleoutlinecolor black
set circlecolors {white blue gray blue blue}
set linkfgcolor blue
set circleoutlinecolor black
-set geometry(main) 1245x1535+0+0
-set geometry(state) normal
-set geometry(topwidth) 1245
-set geometry(topheight) 982
-set geometry(pwsash0) "833 1"
-set geometry(pwsash1) "1038 1"
-set geometry(botwidth) 900
-set geometry(botheight) 548
+END
+
+perl <$HOME/.gitk -ne '
+ next unless m{^set geometry\(};
+ s{^(set geometry\(state\)) .*}{$1 normal};
+ print;
+'
+
+cat <<END
set permviews {}
END
set permviews {}
END