Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
git-gui: use "untracked" for files which are not known to git
author
Bert Wesarg
<bert.wesarg@googlemail.com>
Fri, 14 Oct 2011 19:25:20 +0000
(21:25 +0200)
committer
Pat Thoyts
<patthoyts@users.sourceforge.net>
Tue, 18 Oct 2011 08:44:10 +0000
(09:44 +0100)
"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>
lib/index.tcl
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (from parent 1:
b020bbd
)
diff --git
a/lib/index.tcl
b/lib/index.tcl
index 3a9c8b776baf2014ebcfbd6bc35aee152b7426c5..014acf93198d3ef3bc347a65b6129121b1228f09 100644
(file)
--- a/
lib/index.tcl
+++ b/
lib/index.tcl
@@
-356,20
+356,20
@@
proc do_add_all {} {
global file_states
set paths [list]
global file_states
set paths [list]
- set un
known
_paths [list]
+ set un
tracked
_paths [list]
foreach path [array names file_states] {
switch -glob -- [lindex $file_states($path) 0] {
U? {continue}
?M -
?T -
?D {lappend paths $path}
foreach path [array names file_states] {
switch -glob -- [lindex $file_states($path) 0] {
U? {continue}
?M -
?T -
?D {lappend paths $path}
- ?O {lappend un
known
_paths $path}
+ ?O {lappend un
tracked
_paths $path}
}
}
}
}
- if {[llength $un
known
_paths]} {
- set reply [ask_popup [mc "
There are unknown files do you also want to stage those
?"]]
+ if {[llength $un
tracked
_paths]} {
+ set reply [ask_popup [mc "
Stage also untracked files
?"]]
if {$reply} {
if {$reply} {
- set paths [concat $paths $un
known
_paths]
+ set paths [concat $paths $un
tracked
_paths]
}
}
add_helper {Adding all changed files} $paths
}
}
add_helper {Adding all changed files} $paths