ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install diffdiff-c 0 は周辺行なしの差分を示します。-o <patch> で unified patch を保存できます。
.patched ファイルを作成します。-o <dst> で出力先を指定し、-f でその出力先を上書きできます。元ファイルの置換には -r が必要です。
diff <old> <new> [options]diff <old> <new>3 行のコンテキスト付き unified
diff <old> <new> -c <lines>コンテキストを 0〜20 行に設定する
diff <old> <new> -qファイルが異なるかだけを表示する
diff <old> <new> -o <patch>patch <file> <patch>パッチ結果を <file>.patched に書く
patch <file> <patch> -o <dst>別のファイルへ結果を書く
patch <file> <patch> -r元ファイルを原子的に置き換える
patch <file> <patch> -f-r 以外の既存出力を置き換えられるようにする
-c 0 は周辺行なしの差分を示します。-o <patch> で unified patch を保存できます。
.patched ファイルを作成します。-o <dst> で出力先を指定し、-f でその出力先を上書きできます。元ファイルの置換には -r が必要です。
用意された例をページ上でそのまま実行できます。結果は事前に生成されてブラウザに表示され、サーバーではターミナルコマンドを実行しません。
現在の互換バージョンをインストールします。全機能は Base、縮小版は Minimum を選び、すでに導入済みのモジュール更新には upgrade を使います。
Base と Minimum は同じ現在のモジュールリリースの二つのパッケージです。
ローカル参照と公開済みの全モードを含む完全パッケージをインストールします。
install diff縮小パッケージをインストールします。ローカルリファレンスは含まれず、
install diff -mこの公開済みバージョンを正確に指定してインストールします。
install diff -v 1.1.4upgrade が互換性を確認し、必要な場合だけブロックを置換します。
upgrade diffコアや他のモジュールに触れず拡張ブロックを削除します。
install diff -u例はコピーできますが、サイトは実行しません。実プロジェクトではパス、権限、破壊的オプションを確認してください。
cd \sandbox | diff workspace/original.txt workspace/updated.txt--- workspace/original.txt
+++ workspace/updated.txt
@@ -1,3 +1,4 @@
alpha
-beta
+beta updated
gamma
+deltadiff \sandbox\workspace\original.txt \sandbox\workspace\updated.txt -c 0--- workspace/original.txt
+++ workspace/updated.txt
@@ -2 +2 @@
-beta
+beta updated
@@ -3,0 +4 @@
+deltadiff \sandbox\workspace\original.txt \sandbox\workspace\updated.txt -qDifferentdiff \sandbox\workspace\original.txt \sandbox\workspace\updated.txt -o \sandbox\tmp\workspace.patchSaved tmp/workspace.patch
Size 110 Bpatch \sandbox\workspace\original.txt \sandbox\workspace\change.patchSource workspace/original.txt
Patched workspace/original.txt.patchedpatch \sandbox\workspace\original.txt \sandbox\workspace\change.patch -o \sandbox\tmp\patched.txtSource workspace/original.txt
Patched tmp/patched.txtpatch \sandbox\workspace\original.txt \sandbox\workspace\change.patch -o \sandbox\tmp\current.txt -fSource workspace/original.txt
Patched tmp/current.txtpatch \sandbox\workspace\original.txt \sandbox\workspace\change.patch -rSource workspace/original.txt
Patched workspace/original.txtpatch \sandbox\workspace\updated.txt \sandbox\workspace\change.patchPatch deletion mismatchdiff \sandbox\missing.txt \sandbox\workspace\updated.txtファイルが見つかりませんdiff \sandbox\workspace\original.txt \sandbox\workspace\updated.txt -q -o \sandbox\tmp\bad.patchChoose -q or -osandbox/workspace/original.txt例では、保護されたドキュメント用 /sandbox/ ワークスペースのファイルまたはディレクトリを使います。
alpha
beta
gamma