ソースを参照

Merge pull request #250 from naxoc/add-patch

Add patch command.
Romain Prieto 10 年 前
コミット
011da19d1c
1 ファイル変更16 行追加0 行削除
  1. 16 0
      pages/common/patch.md

+ 16 - 0
pages/common/patch.md

@@ -0,0 +1,16 @@
+#patch
+
+> Patch a file (or files) with a diff file.
+> Note that diff files contain both the target filenames and list of changes.
+
+- apply a patch
+
+`patch < {{patchfile}}.diff`
+
+- apply a patch to current directory
+
+`patch -p1 < {{patchfile}}.diff`
+
+- apply the reverse of a patch
+
+`patch -R < {{patchfile}}.diff`