summaryrefslogtreecommitdiff
path: root/lib/index.tcl
diff options
context:
space:
mode:
authorLibravatar Bert Wesarg <bert.wesarg@googlemail.com>2011-10-14 21:25:20 +0200
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2011-10-18 09:44:10 +0100
commit526aa2b2033048bc90ff40228a60619ca6872e21 (patch)
tree407f6a4893f48c00c3632fff34425c821384d891 /lib/index.tcl
parentgit-gui: fix unintended line break in message string (diff)
downloadtgif-526aa2b2033048bc90ff40228a60619ca6872e21.tar.xz
git-gui: use "untracked" for files which are not known to git
"untracked" is the right phrase for files new to git. For example git-status uses this phrase. Also make the question shorter. Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'lib/index.tcl')
-rw-r--r--lib/index.tcl10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/index.tcl b/lib/index.tcl
index 3a9c8b776b..014acf9319 100644
--- a/lib/index.tcl
+++ b/lib/index.tcl
@@ -356,20 +356,20 @@ proc do_add_all {} {
global file_states
set paths [list]
- set unknown_paths [list]
+ set untracked_paths [list]
foreach path [array names file_states] {
switch -glob -- [lindex $file_states($path) 0] {
U? {continue}
?M -
?T -
?D {lappend paths $path}
- ?O {lappend unknown_paths $path}
+ ?O {lappend untracked_paths $path}
}
}
- if {[llength $unknown_paths]} {
- set reply [ask_popup [mc "There are unknown files do you also want to stage those?"]]
+ if {[llength $untracked_paths]} {
+ set reply [ask_popup [mc "Stage also untracked files?"]]
if {$reply} {
- set paths [concat $paths $unknown_paths]
+ set paths [concat $paths $untracked_paths]
}
}
add_helper {Adding all changed files} $paths