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 {} {
16161616 if {[ file isfile [gitdir MERGE_MSG] ]} {
16171617 set pcm_source " merge"
16181618 set fd_mm [ open [gitdir MERGE_MSG] r]
1619+ fconfigure $fd_mm -encoding utf-8
16191620 puts -nonewline $fd_pcm [ read $fd_mm ]
16201621 close $fd_mm
16211622 } elseif {[ file isfile [gitdir SQUASH_MSG] ]} {
16221623 set pcm_source " squash"
16231624 set fd_sm [ open [gitdir SQUASH_MSG] r]
1625+ fconfigure $fd_sm -encoding utf-8
16241626 puts -nonewline $fd_pcm [ read $fd_sm ]
16251627 close $fd_sm
16261628 } else {
Original file line number Diff line number Diff line change @@ -127,6 +127,9 @@ proc show_diff {path w {lno {}} {scroll_pos {}} {callback {}}} {
127127 } else {
128128 start_show_diff $cont_info
129129 }
130+
131+ global current_diff_path selected_paths
132+ set selected_paths($current_diff_path ) 1
130133}
131134
132135proc show_unmerged_diff {cont_info} {
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ proc tools_populate_one {fullname} {
6969proc tools_exec {fullname} {
7070 global repo_config env current_diff_path
7171 global current_branch is_detached
72+ global selected_paths
7273
7374 if {[is_config_true " guitool.$fullname .needsfile" ]} {
7475 if {$current_diff_path eq {}} {
@@ -100,6 +101,7 @@ proc tools_exec {fullname} {
100101
101102 set env(GIT_GUITOOL) $fullname
102103 set env(FILENAME) $current_diff_path
104+ set env(FILENAMES) [join [array names selected_paths] \n ]
103105 if {$is_detached } {
104106 set env(CUR_BRANCH) " "
105107 } else {
@@ -121,6 +123,7 @@ proc tools_exec {fullname} {
121123
122124 unset env(GIT_GUITOOL)
123125 unset env(FILENAME)
126+ unset env(FILENAMES)
124127 unset env(CUR_BRANCH)
125128 catch { unset env(ARGS) }
126129 catch { unset env(REVISION) }
Original file line number Diff line number Diff line change 1111if [ $# -eq 0 ]
1212then
1313 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
1515!
1616 exit 1;
1717fi
@@ -33,7 +33,7 @@ cat <<!
3333msgid ""
3434msgstr ""
3535"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"
3737"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
3838"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
3939"Language-Team: LANGUAGE <LL@li.org>\n"
You can’t perform that action at this time.
0 commit comments