summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2011-10-18 09:32:22 +0100
committerLibravatar Pat Thoyts <patthoyts@users.sourceforge.net>2011-10-18 09:44:10 +0100
commit99665fc58269cfd608558cc0afbc53824703fc6b (patch)
tree8e7a9a389eb16a8c92045b40533e47514d1bca17 /lib
parentgit-gui: new config to control staging of untracked files (diff)
downloadtgif-99665fc58269cfd608558cc0afbc53824703fc6b.tar.xz
git-gui: include the number of untracked files to stage when asking the user
Signed-off-by: Bert Wesarg <bert.wesarg@googlemail.com> Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/index.tcl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/index.tcl b/lib/index.tcl
index 45094c2672..8efbbdde21 100644
--- a/lib/index.tcl
+++ b/lib/index.tcl
@@ -377,7 +377,8 @@ proc do_add_all {} {
}
ask -
default {
- set reply [ask_popup [mc "Stage also untracked files?"]]
+ set reply [ask_popup [mc "Stage %d untracked files?" \
+ [llength $untracked_paths]]]
}
}
if {$reply} {