Skip to content

This is a tool used to perform diff and merge on LabVIEW VIs using git. Git is at present difficult to configure and use, and the paths require significant processing to make them work on windows with LabVIEW's diff tool. This attempts to bridge the gap by adding that processing in a LV executable.

License

smithed/vicompare

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vicompare

This repository and any materials provided by NI therein are provided AS IS. NI DISCLAIMS ANY AND ALL LIABILITIES FOR AND MAKES NO WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR PARTICULAR PURPOSE, OR NON-INFRINGEMENT OF INTELLECTUAL PROPERTY. NI shall have no liability for any direct, indirect, incidental, punitive, special, or consequential damages for your use of the repository or any materials contained therein.

================

This is a tool used to perform diff and merge on LabVIEW VIs using git. Git is at present difficult to configure and use, and the paths require significant processing to make them work on windows with LabVIEW's diff tool. This attempts to bridge the gap by adding that processing in a LV executable.

Instructions are to:

  1. open vicompare.lvproj (Code can be opened in LabVIEW 2013 or later)
  2. Build the executables, diffmain and mergemain
  3. Build the source distribution, actions
  4. Build the installer
  5. Run the installer

If you need to add additional processing steps, all actions performed are called by /diffmergetool/action/performaction. First it determines what to do--diff or merge. This string is automatically inserted as an argument by the main exe (diff or merge executables). It then calls the "fix paths" function, which is responsible for performing all operations on the arguments, which are assumed to be paths at this point. Then, diff or merge is called. Diff and merge are black boxes (private methods), but all the necessary items are exposed as parameters.

Configuring for sourcetree is as follows:

  • Difftool: Custom

  • Path: C:\viscc\vidiff.exe

  • Args: "$LOCAL" "$REMOTE"

  • Mergetool: Custom

  • Path: C:\viscc\vimerge.exe

  • Args: "$BASE" "$REMOTE" "$LOCAL" "$MERGED"

Additional args: -lv or -version specifies the labview version to use You can also use any of the standard lvdiff commands as of this revision.

About

This is a tool used to perform diff and merge on LabVIEW VIs using git. Git is at present difficult to configure and use, and the paths require significant processing to make them work on windows with LabVIEW's diff tool. This attempts to bridge the gap by adding that processing in a LV executable.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published