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

Re: [PATCH] git-gui: check whether systems nice command works or disable it

From
Junio C Hamano <gitster@pobox.com>
Date
Feb 8, 2010, 00:21 UTC
Message-ID
<7vhbps4lwr.fsf@alter.siamese.dyndns.org>
In-Reply-To
<20100207214755.GB3034@book.hvoigt.net>
Heiko Voigt <hvoigt@hvoigt.net> writes:
Show 26 quoted lines
> This fixes issue 394 from msysgit. It seems that the Gnuwin32 project
> provides a nice command but it returns a "not implemented" error. To
> help users we now try to execute once and disable it in case it fails.
>
> Signed-off-by: Heiko Voigt <hvoigt@hvoigt.net>
> ---
>
> see: http://code.google.com/p/msysgit/issues/detail?id=394
> for more information.
>
> cheers Heiko
>
>  git-gui/git-gui.sh |    3 +++
>  1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/git-gui/git-gui.sh b/git-gui/git-gui.sh
> index 1fb3cbf..eec2dc9 100755
> --- a/git-gui/git-gui.sh
> +++ b/git-gui/git-gui.sh
> @@ -388,6 +388,9 @@ proc _lappend_nice {cmd_var} {
>  
>  	if {![info exists _nice]} {
>  		set _nice [_which nice]
> +		if {[catch {exec $_nice git version}]} {
> +			set _nice {}
> +		}
Where does the output from this "git version" invocation go?
Show 5 quoted lines
>  	}
>  	if {$_nice ne {}} {
>  		lappend cmd $_nice
> -- 
> 1.7.0.rc1.7.gc0da5
Previous: Heiko VoigtNext: Shawn O. Pearce
Message 2 of 3 in “git-gui: check whether systems nice command works or disable it”
  1. git-gui: check whether systems nice command works or disable itHeiko Voigt, Feb 7, 2010
  2. Junio C HamanoFeb 8, 2010
  3. Shawn O. PearceFeb 8, 2010

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.