Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

~/.gitconfig tip not working on Monterrey #136

Open
elg0nz opened this issue May 17, 2022 · 1 comment
Open

~/.gitconfig tip not working on Monterrey #136

elg0nz opened this issue May 17, 2022 · 1 comment

Comments

@elg0nz
Copy link

elg0nz commented May 17, 2022

The .gitconfig in

meld/index.html

Lines 63 to 80 in 0c2902e

Once installed, edit your <code>~/.gitconfig</code> and add the following lines</p>
<pre><code>[diff]
tool = meld
[difftool]
prompt = false
[difftool "meld"]
trustExitCode = true
cmd = open -W -a Meld --args \"$LOCAL\" \"$REMOTE\"
[merge]
tool = meld
[mergetool]
prompt = false
[mergetool "meld"]
trustExitCode = true
cmd = open -W -a Meld --args --auto-merge \"$LOCAL\" \"$BASE\" \"$REMOTE\" --output=\"$MERGED\"
</code></pre>
</blockquote>

did not work for me in macOS Monterrey 12.3.1.

The bug that I'm seeing with the config above, is that $LOCAL keeps pointing to the wrong file.
eg /.circleci/.config instead of $PWD/.circleci/.config

The config below, however, works great, so I'm wondering if it would be a better option :)
I only have tested it on Monterrey, but afaik it should work with previous MacOS versions

[difftool]
  prompt = false
[difftool "meld"]
  path = /Applications/Meld.app/Contents/MacOS/Meld
[mergetool]
  prompt = false
[mergetool "meld"]
  trustExitCode = true
  path = /Applications/Meld.app/Contents/MacOS/Meld
@danmichaelo
Copy link

See #128 , the recommendation in that issue also works in Monterey

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants