Results 1 to 4 of 4

Thread: Using with git

  1. #1
    Join Date
    Sep 2012
    Posts
    1

    Default Using with git

    I followd the Instructions at:
    http://www.scootersoftware.com/suppo...vcs#gitwindows

    Now when I use the command "git difftool"

    What I expect:
    Beyond Compare opens with many tabs.
    Every tab has one changed file.

    What it actually does:
    It opens all files one by one.

    Console output:
    ====================
    $ git difftool

    Viewing: 'File1.cpp'
    Launch 'bc3' [Y/n]: y

    Viewing: 'File2.h'
    Launch 'bc3' [Y/n]: y

    Viewing: 'VFile3.cpp'
    Launch 'bc3' [Y/n]:
    ====================

    Is there a way to achieve what I want ?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,366

    Default

    Hello,

    Are you using gitdiff on a directory? The definition provided is to configure different source control systems to allow BC3 to be used as a difftool or mergetool on a specific pair of files.

    The prompt to "Launch 'bc3'" looks like it is generated from Git itself. If there was an option to always provide 'Y' automatically, then it would work like you expect, correct?
    Aaron P Scooter Software

  3. #3
    Join Date
    Mar 2006
    Posts
    1

    Default

    If you're using Git 1.7.11 or newer, there is a new "--dir-diff" option you can use to do a directory diff.

    So, you can use:
    git difftool --dir-diff <branch1> <branch2>

    If you have difftool set to use "Bcomp.exe" in your .gitconfig, you'll need to change it to Bcompare.exe

    There seems to be a problem if you use "Bcomp.exe" with the new --dir-diff option.

    You can find more info about it here:
    http://theo.im/blog/2012/10/27/direc...-git-difftool/
    http://stackoverflow.com/questions/1...mpare-3-to-use

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,366

    Default

    Thanks for the info, Jeff.

    Investigating this, I believe you need to use at least Git 1.8.0 (as I ran into bugs using 1.7.11). And it is true you will need to use bcompare.exe for now, and I would also add the /solo parameter. I'll open a tracker entry to investigate getting bcomp.exe working.
    Aaron P Scooter Software

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •