[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug-patch] Renaming a file via patch
From: |
Oleg |
Subject: |
[bug-patch] Renaming a file via patch |
Date: |
Fri, 05 Dec 2014 01:46:11 +0200 |
Good day, I can not understand why I did not create the file 2.txt after
applying the patch ? I try :
>echo "Text1" > 1.txt
>cat 1.txt
Text1
>cp 1.txt 2.txt
>cat 2.txt
Text1
>echo "Text2" >> 2.txt
>cat 2.txt
Text1
Text2
>diff -u 1.txt 2.txt > 1.patch
>cat 1.patch
--- 1.txt 2014-12-05 01:28:44.314427074 +0200
+++ 2.txt 2014-12-05 01:30:30.070425543 +0200
@@ -1 +1,2 @@
Text1
+Text2
>rm 2.txt
>ls
1.patch 1.txt
>patch < 1.patch
patching file 1.txt
>ls
1.patch 1.txt
>cat 1.txt
Text1
Text2
How to rename a file via patch ?
- [bug-patch] Renaming a file via patch,
Oleg <=