- from toが第一引数, 第二引数で書ける
- デフォルトの対象ファイルがカレントからの再帰
- 表示がgit diff, patch形式
- デフォルトが上書き動作。オプションでdry-run(diffだけ出る)
$ ar from to -dry | tee x.patch
diff --git a/test.file b/test.file
index 0113cbc..94eae1f 100644
--- a/test.file
+++ b/test.file
@@ -1,3 +1,3 @@
test text
-from foo bar
+to foo bar
text end.
$ patch < x.patch