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

Re: add -i not able to find get_colorbool

From
Jeff King <peff@peff.net>
Date
Dec 17, 2007, 14:31 UTC
Message-ID
<20071217143100.GA21122@coredump.intra.peff.net>
In-Reply-To
<Pine.LNX.4.64.0712171400250.9446@racer.site>
On Mon, Dec 17, 2007 at 02:04:21PM +0000, Johannes Schindelin wrote:
Show 12 quoted lines
> The second line of git-add--interactive reads thusly:
> 
> 	use lib (split(/:/, $ENV{GITPERLLIB} || 
> 		"/home/gitte/lib/perl5/site_perl/5.8.8"));
> 
> and this puzzles me:
> 
> 	$ grep -n get_colorbool /home/gitte/lib/perl5/site_perl/5.8.8/Git.pm
> 	584:=item get_colorbool ( NAME )
> 	591:sub get_colorbool {
> 
> So it has it, but cannot locate get_colorbool?

That does seem odd. Can you try running git-add--interactive in the perl debugger and doing this:

  x \&Git::get_colorbool
  x \&Git::repository

It should tell you where it is getting the functions from (in the first case, it will presumably not find it at all, but you seem to have a Git::repository, so it should point to the file that has been loaded).

-Peff
Previous: Johannes SchindelinNext: Johannes Schindelin
Message 2 of 3 in “add -i not able to find get_colorbool”
  1. Johannes SchindelinDec 17, 2007
  2. Jeff KingDec 17, 2007
  3. Johannes SchindelinDec 17, 2007

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.