GLA Summit 2020/Git IS-NOT-A SCC: The Adapter Pattern over Inheritance
Git IS-NOT-A SCC: The Adapter Pattern over Inheritance | |
---|---|
Conference | GLA Summit 2020 |
Presenters | Christian Butcher |
Git IS-NOT-A SCC: The Adapter Pattern over Inheritance by Christian Butcher
Source code control is a vital part of a Continuous Integration system. Git is the most common SCC tool in the LabVIEW community, but writing scripts in other languages isn't always fun. Chris Cilino has an existing SCC 'interface' based on the Perforce model that is freely available. Here I describe a Git-specific library (with a completely different API) and the use of the Adapter Pattern to allow use with the more generic SCC API. By using a Git-specific API at the implementation level, it is much easier for Git users to use the library separately from the SCC API, whilst still allowing use in a larger/more generic system.