Code Monkey home page Code Monkey logo

realbasic-submodule-example's Introduction

This is a relatively blank REALbasic project.

The purpose of this project is to show a possible implementation of a shared common library.  The REALbasic Common KFS BSD library is used as an example here.

To clone this project, perform the following actions:

  git clone git://github.com/andrewkeller/REALbasic-Submodule-Example.git
  cd REALbasic-Submodule-Example
  git submodule init
  git submodule update

After that, you can poke around the project all you want.  The most important thing to notice is:

  If you modify some code in the common library, the change is physically stored only in the submodule, whereas if you modify some code in the parent project, the change is stored in the parent repository only.

The following is how you would pull in new changes to the library in this scenario:

1) Open the RB Project.
2) Delete the library.
3) Run `git fetch` in the library.
4) Run `git checkout origin/master` in the library.
     - This is assuming you do not have any changes in the library you want to keep, and that you only want to update to the current commit of origin/master.
     - If you have changes, you can blow them away before you run the checkout with `git reset --hard HEAD` and `git clean -fd`.
5) Open up the project in the library, and copy and paste the library items from the library's IDE to your project's IDE.
6) Commit the changes.  You should have changes in the .submodules file, and the project.rbvcp file.

realbasic-submodule-example's People

Contributors

andrewkeller avatar

Stargazers

 avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.