Merge tag 'gitgui-0.18.0' of git://repo.or.cz/git-gui
git-gui 0.18.0 * tag 'gitgui-0.18.0' of git://repo.or.cz/git-gui: git-gui 0.18 git-gui: avoid an error message when removing the last remote git-gui: fix file name handling with non-empty prefix git-gui: bring wish process to front on Mac git-gui: change dialog button positions for Windows to suit platform. git-gui: allow "\ No newline at end of file" for linewise staging git-gui: fix the mergetool launcher for the Beyond Compare tool. Makefile: replace "echo 1>..." with "echo >..." French translation: copy -> copie. git-gui: Fix parsing of <rev> <path-which-not-present-in-worktree>
This commit is contained in:
@ -1,7 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
GVF=GIT-VERSION-FILE
|
GVF=GIT-VERSION-FILE
|
||||||
DEF_VER=0.17.GITGUI
|
DEF_VER=0.18.GITGUI
|
||||||
|
|
||||||
LF='
|
LF='
|
||||||
'
|
'
|
||||||
|
@ -254,7 +254,7 @@ lib/tclIndex: $(ALL_LIBFILES) GIT-GUI-VARS
|
|||||||
auto_mkindex lib '*.tcl' \
|
auto_mkindex lib '*.tcl' \
|
||||||
| $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \
|
| $(TCL_PATH) $(QUIET_2DEVNULL); then : ok; \
|
||||||
else \
|
else \
|
||||||
echo 1>&2 " * $(TCL_PATH) failed; using unoptimized loading"; \
|
echo >&2 " * $(TCL_PATH) failed; using unoptimized loading"; \
|
||||||
rm -f $@ ; \
|
rm -f $@ ; \
|
||||||
echo '# Autogenerated by git-gui Makefile' >$@ && \
|
echo '# Autogenerated by git-gui Makefile' >$@ && \
|
||||||
echo >>$@ && \
|
echo >>$@ && \
|
||||||
@ -274,8 +274,8 @@ TRACK_VARS = \
|
|||||||
GIT-GUI-VARS: FORCE
|
GIT-GUI-VARS: FORCE
|
||||||
@VARS='$(TRACK_VARS)'; \
|
@VARS='$(TRACK_VARS)'; \
|
||||||
if test x"$$VARS" != x"`cat $@ 2>/dev/null`" ; then \
|
if test x"$$VARS" != x"`cat $@ 2>/dev/null`" ; then \
|
||||||
echo 1>&2 " * new locations or Tcl/Tk interpreter"; \
|
echo >&2 " * new locations or Tcl/Tk interpreter"; \
|
||||||
echo 1>$@ "$$VARS"; \
|
echo >$@ "$$VARS"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ifdef GITGUI_MACOSXAPP
|
ifdef GITGUI_MACOSXAPP
|
||||||
|
@ -135,6 +135,20 @@ proc strcat {args} {
|
|||||||
::msgcat::mcload $oguimsg
|
::msgcat::mcload $oguimsg
|
||||||
unset oguimsg
|
unset oguimsg
|
||||||
|
|
||||||
|
######################################################################
|
||||||
|
##
|
||||||
|
## On Mac, bring the current Wish process window to front
|
||||||
|
|
||||||
|
if {[tk windowingsystem] eq "aqua"} {
|
||||||
|
catch {
|
||||||
|
exec osascript -e [format {
|
||||||
|
tell application "System Events"
|
||||||
|
set frontmost of processes whose unix id is %d to true
|
||||||
|
end tell
|
||||||
|
} [pid]]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
##
|
##
|
||||||
## read only globals
|
## read only globals
|
||||||
@ -3003,18 +3017,11 @@ blame {
|
|||||||
set jump_spec {}
|
set jump_spec {}
|
||||||
set is_path 0
|
set is_path 0
|
||||||
foreach a $argv {
|
foreach a $argv {
|
||||||
if {[file exists $a]} {
|
set p [file join $_prefix $a]
|
||||||
if {$path ne {}} usage
|
|
||||||
set path [normalize_relpath $a]
|
|
||||||
break
|
|
||||||
} elseif {[file exists $_prefix$a]} {
|
|
||||||
if {$path ne {}} usage
|
|
||||||
set path [normalize_relpath $_prefix$a]
|
|
||||||
break
|
|
||||||
}
|
|
||||||
|
|
||||||
if {$is_path} {
|
if {$is_path || [file exists $p]} {
|
||||||
if {$path ne {}} usage
|
if {$path ne {}} usage
|
||||||
|
set path [normalize_relpath $p]
|
||||||
break
|
break
|
||||||
} elseif {$a eq {--}} {
|
} elseif {$a eq {--}} {
|
||||||
if {$path ne {}} {
|
if {$path ne {}} {
|
||||||
|
@ -286,7 +286,9 @@ method _next {action} {
|
|||||||
destroy $w_body
|
destroy $w_body
|
||||||
if {![winfo exists $w_next]} {
|
if {![winfo exists $w_next]} {
|
||||||
${NS}::button $w_next -default active
|
${NS}::button $w_next -default active
|
||||||
pack $w_next -side right -padx 5 -before $w_quit
|
set pos -before
|
||||||
|
if {[tk windowingsystem] eq "win32"} { set pos -after }
|
||||||
|
pack $w_next -side right -padx 5 $pos $w_quit
|
||||||
}
|
}
|
||||||
_do_$action $this
|
_do_$action $this
|
||||||
}
|
}
|
||||||
|
@ -764,8 +764,15 @@ proc apply_range_or_line {x y} {
|
|||||||
# context line
|
# context line
|
||||||
set ln [$ui_diff get $i_l $next_l]
|
set ln [$ui_diff get $i_l $next_l]
|
||||||
set patch "$patch$pre_context$ln"
|
set patch "$patch$pre_context$ln"
|
||||||
set n [expr $n+1]
|
# Skip the "\ No newline at end of
|
||||||
set m [expr $m+1]
|
# file". Depending on the locale setting
|
||||||
|
# we don't know what this line looks
|
||||||
|
# like exactly. The only thing we do
|
||||||
|
# know is that it starts with "\ "
|
||||||
|
if {![string match {\\ *} $ln]} {
|
||||||
|
set n [expr $n+1]
|
||||||
|
set m [expr $m+1]
|
||||||
|
}
|
||||||
set pre_context {}
|
set pre_context {}
|
||||||
} elseif {$c1 eq $to_context} {
|
} elseif {$c1 eq $to_context} {
|
||||||
# turn change line into context line
|
# turn change line into context line
|
||||||
|
@ -189,9 +189,9 @@ proc merge_resolve_tool2 {} {
|
|||||||
}
|
}
|
||||||
bc3 {
|
bc3 {
|
||||||
if {$base_stage ne {}} {
|
if {$base_stage ne {}} {
|
||||||
set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" -mergeoutput="$MERGED"]
|
set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" "$BASE" "-mergeoutput=$MERGED"]
|
||||||
} else {
|
} else {
|
||||||
set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" -mergeoutput="$MERGED"]
|
set cmdline [list "$merge_tool_path" "$LOCAL" "$REMOTE" "-mergeoutput=$MERGED"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ecmerge {
|
ecmerge {
|
||||||
|
@ -245,7 +245,8 @@ proc update_all_remotes_menu_entry {} {
|
|||||||
set prune_m $remote_m.prune
|
set prune_m $remote_m.prune
|
||||||
if {$have_remote > 1} {
|
if {$have_remote > 1} {
|
||||||
make_sure_remote_submenues_exist $remote_m
|
make_sure_remote_submenues_exist $remote_m
|
||||||
if {[$fetch_m entrycget end -label] ne "All"} {
|
if {[$fetch_m type end] eq "command" \
|
||||||
|
&& [$fetch_m entrycget end -label] ne "All"} {
|
||||||
|
|
||||||
$fetch_m insert end separator
|
$fetch_m insert end separator
|
||||||
$fetch_m insert end command \
|
$fetch_m insert end command \
|
||||||
@ -259,7 +260,8 @@ proc update_all_remotes_menu_entry {} {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if {[winfo exists $fetch_m]} {
|
if {[winfo exists $fetch_m]} {
|
||||||
if {[$fetch_m entrycget end -label] eq "All"} {
|
if {[$fetch_m type end] eq "command" \
|
||||||
|
&& [$fetch_m entrycget end -label] eq "All"} {
|
||||||
|
|
||||||
delete_from_menu $fetch_m end
|
delete_from_menu $fetch_m end
|
||||||
delete_from_menu $fetch_m end
|
delete_from_menu $fetch_m end
|
||||||
|
@ -1139,7 +1139,7 @@ msgstr "Standard (rapide, semi-redondant, liens durs)"
|
|||||||
|
|
||||||
#: lib/choose_repository.tcl:514
|
#: lib/choose_repository.tcl:514
|
||||||
msgid "Full Copy (Slower, Redundant Backup)"
|
msgid "Full Copy (Slower, Redundant Backup)"
|
||||||
msgstr "Copy complète (plus lent, sauvegarde redondante)"
|
msgstr "Copie complète (plus lent, sauvegarde redondante)"
|
||||||
|
|
||||||
#: lib/choose_repository.tcl:520
|
#: lib/choose_repository.tcl:520
|
||||||
msgid "Shared (Fastest, Not Recommended, No Backup)"
|
msgid "Shared (Fastest, Not Recommended, No Backup)"
|
||||||
|
Reference in New Issue
Block a user