Skip to content

Instantly share code, notes, and snippets.

View digitalresistor's full-sized avatar
🦉
Hoot hoot!

Delta Regeer digitalresistor

🦉
Hoot hoot!
  • ::1
View GitHub Profile
@digitalresistor
digitalresistor / update-branches.sh
Created March 20, 2011 08:18
Procedure to take a library that contains files for multiple programming languages, and split off the language specific features into separate branches
cat << EOF > /dev/null
These procedures are helpful if you have a structure like this in your source tree and it can be anything like
Google protobuf, grammar syntax, shared source code of some sort that gets transformed to Python and C++, or
really anything that has a common base from which it is derived but when included (subtree'd/submoduled in git)
we only need the language specific part, not the rest.
What we do is create completely new branches in which we place a copy from the proper subdirectory from the
master branch. Yes that technically means we are duplicating files/commits in two different locations, but it
is a better option that having your Python specific source tree carrying around C++ files it does not need.