Next: , Previous: Marking Conflicts, Up: diff3 Merging


8.3 マージされた出力を直接生成する

-m--mergeオプションを用いると,diff3はマー ジされたファイルを直接出力します.これは,それを生成するために edを使用するより効果的で,edが除外するテキストではな いファイルでも動作します.edスクリプトオプションを使用せずに -mを指定する場合,-A (--show-all)が仮定されま す.

例えば,コマンド‘diff3 -m lao tzu tao’は(入力ファイルのコピーは see Sample diff3 Input),以下の出力を生成します.

     <<<<<<< tzu
     =======
     The Way that can be told of is not the eternal Way;
     The name that can be named is not the eternal name.
     >>>>>>> tao
     The Nameless is the origin of Heaven and Earth;
     The Named is the mother of all things.
     Therefore let there always be non-being,
       so we may see their subtlety,
     And let there always be being,
       so we may see their result.
     The two are the same,
     But after they are produced,
       they have different names.
     <<<<<<< lao
     ||||||| tzu
     They both may be called deep and profound.
     Deeper and more profound,
     The door of all subtleties!
     =======
     
       -- The Way of Lao-Tzu, tr. Wing-tsit Chan
     >>>>>>> tao