[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-patch] Patch not creating new files when no contents
From: |
Andreas Gruenbacher |
Subject: |
Re: [bug-patch] Patch not creating new files when no contents |
Date: |
Tue, 12 May 2009 15:13:57 +0200 |
User-agent: |
KMail/1.9.9 |
Hello,
On Wednesday, 6 May 2009 21:53:58 brad laney wrote:
> Index: lic/newfile.txt
> ===================================================================
> Index: lic/blahblah.txt
> ===================================================================
> --- lic/blahblah.txt (removed) (revision 1074)
> +++ lic/blahblah.txt (removed) (revision 1074)
> @@ -1,3 +1,3 @@
> aaaaaa
> -bbbbbb
> +bbxbbb
> cccccc
> \ No newline at end of file
thanks for reporting this problem.
diff will not create such a patch, and patch cannot handle this case
currently, I'm afraid. One of the next likely features is support for the
extended patch headers introduced by git, and that should probably cover this
case as well. (I'm not entirely sure that an Index: header should be enough
to get a file created, though.)
I've created a bug for keeping this on the radar:
https://savannah.gnu.org/bugs/index.php?26539
Thanks,
Andreas