比較したのは、以下の 2 つのファイルです。
| 1 番目のファイル | 2 番目のファイル | ||
|---|---|---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
Eustace, a pointy-eared hippopotamus, was scampering across a summer meadow one day when he suddenly came across a stream. Sitting on a rock in the middle of the stream was a small green frog, basking in the afternoon sunshine. "Hello small green frog!", said Eustace."What are you doing there?" Froggy didn't answer, so Eustace trod on him and wandered off into the nearby forest to look for wild onions. |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
Eustace, a pointy-eared hippopotamus, was scampering across a summer meadow one day when he suddenly came across a stream. Eustace almost fell into the stream, but skidded to a halt just in time. Sitting on a rock in the middle of the stream was a small blue frog, basking in the afternoon sunshine. "Hello small blue frog!", said Eustace."What are you doing there?" |
Merge が作成した編集スクリプトは、次に示すようになります。編集スクリプトは、1 番目のファイルを 2 番目のファイルに変えるために、1 番目のファイルに対して行う必要のある編集内容を表しています。レポートには、2 番目のファイルを 1 番目のファイルに変えるための十分な情報も含まれています。
| 編集スクリプト | 説明 |
|---|---|
5a5,7 > Eustace almost fell into the stream, but > skidded to a halt just in time.> |
2 番目のファイルの 3 行(5 行目から 7 行目)を、1 番目のファイルの 5 行目の前に挿入する必要があります。 |
6c9 < stream was a small green frog, basking in the --- > stream was a small blue frog, basking in the |
1 番目のファイルの 6 行目は 2 番目のファイルの 9 行目に相当するため、現在の内容(--- マーカーより前の先頭に < が付いている行)を新しい内容(--- マーカーより後の先頭に < が付いている行)に変更する必要があります。 |
9c12 < "Hello small green frog!", said Eustace."What --- > "Hello small blue frog!", said Eustace."What |
1 番目のファイルの 9 行目は 2 番目のファイルの 12 行目に相当するため、現在の内容(--- マーカーより前の先頭に < が付いている行)を新しい内容(--- マーカーより後の先頭に < が付いている行)に変更する必要があります。 |
11,14d14 < < Froggy didn't answer, so Eustace trod on him < and wandered off into the nearby forest to look < for wild onions. |
1 番目のファイルの 11 行目から 14 行目を削除する必要があります。 |
| 関連するトピック |
|---|
