Skip to content

Commit 408c212

Browse files
committed
Merge branch 'patches' into pu
2 parents 64c6b4c + a0a0c68 commit 408c212

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

git-gui.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 {

lib/diff.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff 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

132135
proc show_unmerged_diff {cont_info} {

lib/tools.tcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ proc tools_populate_one {fullname} {
6969
proc 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) }

po/glossary/txt-to-pot.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
if [ $# -eq 0 ]
1212
then
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;
1717
fi
@@ -33,7 +33,7 @@ cat <<!
3333
msgid ""
3434
msgstr ""
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 <[email protected]>\n"

0 commit comments

Comments
 (0)