Thanks Driven Life

日々是感謝

やってみたいこと

master(developer) ブランチが現在以下な感じ。

.
|-- LICENSE
|-- Makefile
|-- Makefile.coverage
|-- Makefile.defs
|-- README.mkdn
|-- Tython.xml
|-- include
|   |-- AbstractDetector.h
|   |-- AbstractInputMethod.h
|   |-- AbstractRenderer.h
|   |-- CommandDetector.h
|   |-- Compiler.h
|   |-- Controller.h
|   |-- CrossArmBlockPoseDetector.h
|   |-- DefaultInputMethod.h
|   |-- Instruction.h
|   |-- LeftHookCommandDetector.h
|   |-- LeftJabCommandDetector.h
|   |-- LocusDetector.h
|   |-- OwataPoseDetector.h
|   |-- PoseDetector.h
|   |-- RightStraightCommandDetector.h
|   |-- RightUpperCommandDetector.h
|   |-- ThanksCommandDetector.h
|   |-- Timer.h
|   |-- User.h
|   |-- UserContext.h
|   |-- UserFactory.h
|   |-- VM.h
|   |-- Vector.h
|   `-- util.h
|-- src
|   |-- Compiler.cc
|   |-- Controller.cc
|   |-- Detector
|   |   |-- AbstractDetector.cc
|   |   |-- CommandDetector.cc
|   |   |-- CrossArmBlockPoseDetector.cc
|   |   |-- LeftHookCommandDetector.cc
|   |   |-- LeftJabCommandDetector.cc
|   |   |-- LocusDetector.cc
|   |   |-- OwataPoseDetector.cc
|   |   |-- PoseDetector.cc
|   |   |-- RightStraightCommandDetector.cc
|   |   |-- RightUpperCommandDetector.cc
|   |   `-- ThanksCommandDetector.cc
|   |-- InputMethod
|   |   |-- AbstractInputMethod.cc
|   |   `-- DefaultInputMethod.cc
|   |-- Renderer
|   |   `-- AbstractRenderer.cc
|   |-- Timer.cc
|   |-- User.cc
|   |-- UserContext.cc
|   |-- UserFactory.cc
|   |-- VM.cc
|   |-- Vector.cc
|   `-- main.cc
`-- test
    |-- AbstractDetectorTest.cc
    |-- CommandDetectorTest.cc
    |-- CompilerTest.cc
    |-- CrossArmBlockPoseDetectorTest.cc
    |-- LeftJabCommandDetectorTest.cc
    |-- LocusDetectorTest.cc
    |-- MockTimer.h
    |-- MockUser.h
    |-- MockVector.h
    |-- OwataPoseDetectorTest.cc
    |-- RightStraightCommandDetectorTest.cc
    |-- ThanksCommandDetectorTest.cc
    |-- TimerTest.cc
    |-- VMTest.cc
    |-- VectorTest.cc
    `-- main.cc

で、作りたいと思ってるのが、以下のような git submodule 用のブランチ。

.
|-- LICENSE
|-- include
|   |-- AbstractDetector.h
|   |-- CommandDetector.h
|   |-- CrossArmBlockPoseDetector.h
|   |-- LeftHookCommandDetector.h
|   |-- LeftJabCommandDetector.h
|   |-- LocusDetector.h
|   |-- OwataPoseDetector.h
|   |-- PoseDetector.h
|   |-- RightStraightCommandDetector.h
|   |-- RightUpperCommandDetector.h
|   |-- ThanksCommandDetector.h
|   |-- Timer.h
|   |-- User.h
|   |-- UserContext.h
|   |-- UserFactory.h
|   |-- Vector.h
|   `-- util.h
`-- src
    |-- Detector
    |   |-- AbstractDetector.cc
    |   |-- CommandDetector.cc
    |   |-- CrossArmBlockPoseDetector.cc
    |   |-- LeftHookCommandDetector.cc
    |   |-- LeftJabCommandDetector.cc
    |   |-- LocusDetector.cc
    |   |-- OwataPoseDetector.cc
    |   |-- PoseDetector.cc
    |   |-- RightStraightCommandDetector.cc
    |   |-- RightUpperCommandDetector.cc
    |   `-- ThanksCommandDetector.cc
    |-- Timer.cc
    |-- User.cc
    |-- UserContext.cc
    `-- UserFactory.cc

何がしたいかと言うと、Detector 関連だけを別プロジェクトで
git submodule とかして使いたいなーと思って。

で、ブランチ切るぐらいならいいんだけど、そのあと。

例えば developer ブランチ で Detector の修正、もしくは追加をした後、
submodule ブランチに反映させたい時。
git merge とかだと他のファイルまでもってくるんだけど、これをどうにかしたい。
gitignore でできるんですか?よくわからに!

もしかして、submodule ブランチをメインにすればいいのかなー。


元々 Detector だけを別プロジェクトにしておけばよかったんだけど今更移動すのもなーって。
とりあえず日本語でおk