diff options
author | Junio C Hamano <gitster@pobox.com> | 2011-10-16 03:01:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-10-16 03:01:44 -0700 |
commit | 47d45a5ebd5bce543a50546d05e8b92c6971acda (patch) | |
tree | 9b386fabbcb80dd7993e94a3c189ed21b9b03147 /git-gui/lib/index.tcl | |
parent | cdb51a13c3cf4830d499d1138160eacdd2b8aa46 (diff) | |
parent | 843d6597fbacfae02b8af7d6840992c92d0863f8 (diff) | |
download | git-47d45a5ebd5bce543a50546d05e8b92c6971acda.tar.gz |
Merge git://repo.or.cz/git-gui
* git://repo.or.cz/git-gui:
git-gui: incremental goto line in blame view
git-gui: clear the goto line input when hiding
git-gui: only accept numbers in the goto-line input
git-gui: search and linenumber input are mutual exclusive in the blame view
git-gui: deal with unknown files when pressing the "Stage Changed" button
git-gui: drop the 'n' and 'Shift-n' bindings from the last patch.
git-gui: Add keyboard shortcuts for search and goto commands in blame view.
git-gui: Enable jumping to a specific line number in blame view.
Fix tooltip display with multiple monitors on windows.
Fix typo: existant->existent
git-gui: updated translator README for current procedures.
git-gui: warn when trying to commit on a detached head
git-gui: Corrected a typo in the Swedish translation of 'Continue'
Diffstat (limited to 'git-gui/lib/index.tcl')
-rw-r--r-- | git-gui/lib/index.tcl | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/git-gui/lib/index.tcl b/git-gui/lib/index.tcl index 5d7bbf23ed..e38b647b71 100644 --- a/git-gui/lib/index.tcl +++ b/git-gui/lib/index.tcl @@ -356,12 +356,21 @@ proc do_add_all {} { global file_states set paths [list] + set unknown_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} + } + } + if {[llength $unknown_paths]} { + set reply [ask_popup [mc "There are unknown files do you also want +to stage those?"]] + if {$reply} { + set paths [concat $paths $unknown_paths] } } add_helper {Adding all changed files} $paths |