Project

General

Profile

Actions

Infrastructure #10

closed

Using BlackBox as a Diff-Viewer for Git

Added by J. Templ about 11 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
Start date:
07/30/2014
Due date:
07/30/2014
% Done:

100%

Estimated time:
1:00 h

Description

If you want to use Git (or Svn) for managing BlackBox source code and resource files,
which are in a binary format (.odc), you need a diff viewer capable of handling
this specific file format. As it turned out, BlackBox can be used for that
purpose with just a small adaptation.

Here is how to set it up for Git:

1. download and unpack the attached DiffConfig package, which simply
contains a special version of a BlackBox 1.6 Config file.

2. Under Git settings configure a diff viewer for the .odc file name extension.
The details depend on which Git client tool you use but there is always a way
for setting up a diff viewer for a specific file name extension.
Under TortoiseGit, which I use, you select the entry 'Settings' under the
Git Popup menu. Then select 'Diff Viewer' and 'Advanced...'.
Then 'Add...' a new diff viewer and adapt the paths as needed:
Extension: .odc.
External Program: "C:\Program Files\BlackBox Component Builder 1.6\BlackBox.exe" /USE "C:\Program Files\DiffConfig" %mine %base

That is it.
Now you can use all the diff commands of your Git client for .odc files.
The Config file simply tiles the window vertically, the left window showing
the base version, and the right window showing the new version.
Then it invokes the Text Diff command (F9).
You use F9 to step to the next difference.

- Josef Templ


Files

DiffConfig.zip (3.49 KB) DiffConfig.zip I. Denisov, 08/01/2014 08:36 AM
Actions

Also available in: Atom PDF