Skip to content
This repository was archived by the owner on Oct 2, 2020. It is now read-only.
This repository was archived by the owner on Oct 2, 2020. It is now read-only.

Symbol library version control? #328

@nacansino

Description

@nacansino

I am currently experimenting with schlib/comparelibs.py to integrate a version control system for my symbol libraries. Our custom library structure is of the following form:

xlab
|   Resistor.dcm
|   Capacitor.dcm
|   ...
|
|   Resistor.lib
|   Capacitor.lib
|   ...
|
|   Footprint
|   |   Resistor.pretty
|   |   |   `RESXX123`.kicad_mod
|   |   |   ...  
|   |
|   |   Capacitor.pretty
|   |   |   `CXYZ456`.kicad_mod
|   |   |   ...  
|   |
|   |   ...
|   |
|
|   3D
|   |   Resistor.3dshapes
|   |   |   `RESXX123`.stp
|   |   |   ...  
|   |
|   |   Capacitor.3dshapes
|   |   |   `CXYZ456`.stp
|   |   |   ...  

The end goal is to see if there are additions, modifications, or deletions in my symbol libraries (Resistor.lib, Capacitor.lib, etc). Unlike the changes in Footprint/ and 3d/ that are explicit as the components are separated per file, components inside the symbol libraries are lumped into groups.

While I was able to verify that schlib/comparelibs.py does the job well when comparing libraries, it requires that you have the whole library for both versions to work properly. This does not fit Git, because by the design, in only stores the deltas between changes,

The only solution I'm thinking for full Git VCS integration is to create a script that can read the temporary deltas Git is creating when modifying the repository, then call that script as an external diff tool.

Has anyone dealt with this task before? What were your approaches?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions