File tree Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Expand file tree Collapse file tree 4 files changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1616,11 +1616,13 @@ proc run_prepare_commit_msg_hook {} {
1616
1616
if {[ file isfile [gitdir MERGE_MSG] ]} {
1617
1617
set pcm_source " merge"
1618
1618
set fd_mm [ open [gitdir MERGE_MSG] r]
1619
+ fconfigure $fd_mm -encoding utf-8
1619
1620
puts -nonewline $fd_pcm [ read $fd_mm ]
1620
1621
close $fd_mm
1621
1622
} elseif {[ file isfile [gitdir SQUASH_MSG] ]} {
1622
1623
set pcm_source " squash"
1623
1624
set fd_sm [ open [gitdir SQUASH_MSG] r]
1625
+ fconfigure $fd_sm -encoding utf-8
1624
1626
puts -nonewline $fd_pcm [ read $fd_sm ]
1625
1627
close $fd_sm
1626
1628
} else {
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ proc show_diff {path w {lno {}} {scroll_pos {}} {callback {}}} {
127
127
} else {
128
128
start_show_diff $cont_info
129
129
}
130
+
131
+ global current_diff_path selected_paths
132
+ set selected_paths($current_diff_path ) 1
130
133
}
131
134
132
135
proc show_unmerged_diff {cont_info} {
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ proc tools_populate_one {fullname} {
69
69
proc tools_exec {fullname} {
70
70
global repo_config env current_diff_path
71
71
global current_branch is_detached
72
+ global selected_paths
72
73
73
74
if {[is_config_true " guitool.$fullname .needsfile" ]} {
74
75
if {$current_diff_path eq {}} {
@@ -100,6 +101,7 @@ proc tools_exec {fullname} {
100
101
101
102
set env(GIT_GUITOOL) $fullname
102
103
set env(FILENAME) $current_diff_path
104
+ set env(FILENAMES) [join [array names selected_paths] \n ]
103
105
if {$is_detached } {
104
106
set env(CUR_BRANCH) " "
105
107
} else {
@@ -121,6 +123,7 @@ proc tools_exec {fullname} {
121
123
122
124
unset env(GIT_GUITOOL)
123
125
unset env(FILENAME)
126
+ unset env(FILENAMES)
124
127
unset env(CUR_BRANCH)
125
128
catch { unset env(ARGS) }
126
129
catch { unset env(REVISION) }
Original file line number Diff line number Diff line change 11
11
if [ $# -eq 0 ]
12
12
then
13
13
cat << !
14
- Usage: ` basename $0 ` git-gui-glossary.txt > git-gui-glossary.pot
14
+ Usage: $( basename $0 ) git-gui-glossary.txt > git-gui-glossary.pot
15
15
!
16
16
exit 1;
17
17
fi
@@ -33,7 +33,7 @@ cat <<!
33
33
msgid ""
34
34
msgstr ""
35
35
"Project-Id-Version: PACKAGE VERSION\n"
36
- "POT-Creation-Date: ` date +' %Y-%m-%d %H:%M%z' ` \n"
36
+ "POT-Creation-Date: $( date +' %Y-%m-%d %H:%M%z' ) \n"
37
37
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
38
38
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
39
39
"Language-Team: LANGUAGE <[email protected] >\n"
You can’t perform that action at this time.
0 commit comments