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

Re: [PATCH 3/3] git-gui: new config to control staging of untracked files

From
Heiko Voigt <hvoigt@hvoigt.net>
Date
Oct 17, 2011, 18:34 UTC
Message-ID
<20111017183430.GA2540@sandbox-rc>
In-Reply-To
<03727ea04f20c953e7de3f84ab1724a8360ca2c4.1318620267.git.bert.wesarg@googlemail.com>
Hi,
what the series tries to achieve looks good to me. Just one comment.

On Fri, Oct 14, 2011 at 09:25:21PM +0200, Bert Wesarg wrote: [...]

Show 14 quoted lines
> diff --git a/lib/index.tcl b/lib/index.tcl
> index 014acf9..45094c2 100644
> --- a/lib/index.tcl
> +++ b/lib/index.tcl
> @@ -367,7 +367,19 @@ proc do_add_all {} {
>  		}
>  	}
>  	if {[llength $untracked_paths]} {
> -		set reply [ask_popup [mc "Stage also untracked files?"]]
> +		set reply 0
> +		switch -- [get_config gui.stageuntracked] {
> +		no {
> +			set reply 0
> +		}
[...]

Here I am wondering whether we have a similar mechanism in git gui like in core git that makes yes,true,1 equivalents (and similar with other values) ? If we don't I think the series is fine as it is otherwise it probably makes sense to use that mechanism.

Cheers Heiko
Previous: Bert WesargNext: Bert Wesarg
Message 4 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.