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>

Bert Wesarg committed Oct 14, 2011 at 21:25 UTC 526aa2b2033048bc90ff40228a60619ca6872e21
1 file changed +5 -5
lib/index.tcl
+5 -5
@@ -356,20 +356,20 @@ proc do_add_all {} {
356 global file_states
357
358 set paths [list]
359 - set unknown_paths [list]
359 + set untracked_paths [list]
360 foreach path [array names file_states] {
361 switch -glob -- [lindex $file_states($path) 0] {
362 U? {continue}
363 ?M -
364 ?T -
365 ?D {lappend paths $path}
366 - ?O {lappend unknown_paths $path}
366 + ?O {lappend untracked_paths $path}
367 }
368 }
369 - if {[llength $unknown_paths]} {
370 - set reply [ask_popup [mc "There are unknown files do you also want to stage those?"]]
369 + if {[llength $untracked_paths]} {
370 + set reply [ask_popup [mc "Stage also untracked files?"]]
371 if {$reply} {
372 - set paths [concat $paths $unknown_paths]
372 + set paths [concat $paths $untracked_paths]
373 }
374 }
375 add_helper {Adding all changed files} $paths