Announcement

Collapse
No announcement yet.

Getting Git to use BC as my Diff tool doesn't work.

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Getting Git to use BC as my Diff tool doesn't work.

    Hello,


    My setup
    * BC 4.4.2 (build 26348)
    * MacOS Monterey (12.3.1)
    * Git 2.32.1.
    I have set up Git as show in https://www.scootersoftware.com/supp...?zz=kb_vcs_osx

    I didn't follow the instructions for "Git 2.3 and newer" because it refers to "bc" and on my Mac, "bc" is not Beyond Compare, but something else entirely. I have copied the content of my git config
    ================================================== =============
    [core]
    editor = code --wait
    [alias]
    hist = log --oneline --graph --decorate --all
    [diff]
    tool = bcomp
    [difftool]
    prompt = false
    [difftool "bcomp"]
    trustExitCode = true
    cmd = "/usr/local/bin/bcomp" "$LOCAL" "$REMOTE"
    [merge]
    tool = bcomp
    [mergetool]
    prompt = false
    [mergetool "bcomp"]
    trustExitCode = true
    cmd = "/usr/local/bin/bcomp" "$LOCAL" "$REMOTE" "$BASE" "$MERGED"
    ================================================== =============
    1. I have installed the command line tools so if I type "bcomp" in the terminal, it launches Beyond Compare. Also, I have verified that bcomp is present in /usr/local

    But if I execute git difftool file.ext, nothing happens, BC doesn't launch the comparison.

    Can anyone help me? I love Beyond Compare and want to use it with CLI Git.

  • #2
    Hello,

    We're currently going back and forth by email, too. The current troubleshooting step is to backup and replace your current .gitconfig with a simplified one that is only the most basic User/Email definitions and following the Git command line intructions to add 'bc' as a difftool, to see if this works better on your system. If yes, we can then work at narrowing down which part of your existing .gitconfig was problematic, and slowly build up the new .gitconfig to contain everything again.

    And I also suggested updating Git if that is possible.
    https://git-scm.com/
    Aaron P Scooter Software

    Comment

    Working...
    X