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

Re: External Diff Tool

From
ESEric Stegemoller <estegemoller@idmcomp.com>
Date
Aug 4, 2009, 14:12 UTC
Message-ID
<4A7841BF.5060308@idmcomp.com>
In-Reply-To
<20090801111227.GA26029@gmail.com>
David Aguilar wrote:
Show 42 quoted lines
> On Thu, Jul 30, 2009 at 03:22:25PM -0400, Eric Stegemoller wrote:
>   
>> Bert Wesarg wrote:
>>     
>>> On Wed, Jul 29, 2009 at 22:16, Eric Stegemoller<estegemoller@idmcomp.com> wrote:
>>>   
>>>       
>>>> Hello,
>>>>
>>>>  git config --global diff.tool TestTool
>>>>  git config --global difftool.TestTool.cmd ""c:/TestTool/test.exe" "$LOCAL"
>>>>         
>>> Try with quoting the " inside the config value:
>>>
>>>   git config --global difftool.TestTool.cmd "\"c:/TestTool/test.exe\"
>>> \"$LOCAL\" \"$REMOTE\""
>>>   Bert
>>>   
>>>       
>> Thanks, but this did not solve it. Interestingly, I have captured the  
>> command line that is sent out by GIT and it is calling the correct  
>> program but not adding anything to the command line. So, nothing is  
>> there. Seeing this I have been experimenting around with the parameters  
>> and I still it is calling the correct program but sending a blank  
>> command line. Any suggestions on how to pursue this?
>>
>> Eric
>>     
>
>
> I think shell is to blame here.
>
> Try editing ~/.gitconfig by hand.
>
> I think the suggestion above forgot to escape the $ character.
>
> Since the $'s weren't escaped, the shell interpolated the
> $LOCAL, etc. variables and replaced them with the empty
> string.
>
>
>   
Escaping the $'s did the trick! Thanks for everyones help.

Thanks, Eric

Previous: David AguilarNext: Dr. Lars Hanke
Message 6 of 11 in “External Diff Tool”
  1. Eric StegemollerJul 29, 2009
  2. Bert WesargJul 29, 2009
  3. Eric StegemollerJul 30, 2009
  4. Johannes SchindelinJul 31, 2009
  5. David AguilarAug 1, 2009
  6. Eric StegemollerAug 4, 2009
  7. Diffing M$-WordDr. Lars Hanke, Aug 4, 2009
  8. Matthieu MoyAug 4, 2009
  9. John TapsellAug 4, 2009
  10. Johannes SixtAug 4, 2009
  11. Dr. Lars HankeAug 5, 2009

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.