git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH 2/3] git-gui: use "untracked" for files which are not known to git

From
Bert Wesarg <bert.wesarg@googlemail.com>
Date
Oct 14, 2011, 19:25 UTC
Message-ID
<446a8233349fd7d084fd01bf1176a4073ff17593.1318620267.git.bert.wesarg@googlemail.com>
In-Reply-To
<0f862de296a94b06495e4418bc731b5d201d5767.1318620267.git.bert.wesarg@googlemail.com>

"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>
---
 lib/index.tcl |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/lib/index.tcl b/lib/index.tcl
index 3a9c8b7..014acf9 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
-- 
1.7.6.789.gb4599
Previous: Bert WesargNext: Bert Wesarg
Message 2 of 9 in “git-gui: fix unintended line break in message string”
  1. 1/3 git-gui: fix unintended line break in message stringBert Wesarg, Oct 14, 2011
  2. 2/3 git-gui: use "untracked" for files which are not known to gitBert Wesarg, Oct 14, 2011
  3. 3/3 git-gui: new config to control staging of untracked filesBert Wesarg, Oct 14, 2011
  4. Heiko VoigtOct 17, 2011
  5. Bert WesargOct 17, 2011
  6. Heiko VoigtOct 17, 2011
  7. Pat ThoytsOct 17, 2011
  8. Bert WesargOct 18, 2011
  9. Pat ThoytsOct 18, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.