私は bazaar は初めてですが、Git には非常に精通しています。私は基本を理解しようとしています。
履歴が次のようなブランチがあるとします。
* 3 bar
|
* 2 foo
|
* 1 initial commit
コミットしたい一連のパッチがありますが、それらは古いリビジョンに基づいています。古いリビジョンからコミットを作成し、結果をマージしたいと考えています。結果のグラフは次のようになります。
* 4 merge
|\
| * 2.1.3 apply patch #3
| |
| * 2.1.2 apply patch #2
| |
| * 2.1.1 apply patch #1
| |
* | 3 bar
|/
* 2 foo
|
* 1 initial commit
でこれを行うにはどうすればよいbzr
ですか?
Git では、次のようにします。
git checkout -b import-patches master^
for p in 1 2 3; do
git apply --index /path/to/"${p}".patch
git commit -m "apply patch #${p}"
done
git checkout master
git merge import-patches
git branch -d import-patches