bugGNU patch - Bugs: bug #26539, Cannot create empty files

 
 

bug #26539: Cannot create empty files

Submitted by:  Andreas Gruenbacher <agruen>
Submitted on:  Tue 12 May 2009 01:16:59 PM UTC  
Votes:  1  
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Fri 17 Sep 2010 11:47:19 AM UTC, comment #2:

Note that the "diff --git" format which patch understands to some degree now, handles empty files.

Andreas Gruenbacher <agruen>
Project Administrator
Sun 31 Jan 2010 01:52:12 PM UTC, comment #1:

This is especially annoying while communicating changes to Python projects, where the absence of empty _init_.py files affects correctness.

Baurzhan Ismagulov <ibr>
Tue 12 May 2009 01:16:59 PM UTC, original submission:

diff wil not create any output for empty files,

$ echo -n '' > f
$ diff -u /dev/null f

and patch will not create files from patches with only an Index line:

Index: filename
=======================

This is confusing because Subversion does create such patches. This problem should be looked into when adding support for git extended headers (which support things like rename, copy, and mode changes).

Andreas Gruenbacher <agruen>
Project Administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by pebolle
  • -email is unavailable- added by ibr (Posted a comment)
  • -email is unavailable- added by ibr (Voted in favor of this item)
  • -email is unavailable- added by agruen (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 1 encouragement so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-10-25 pebolle Carbon-Copy- => Added pebolle
    2010-01-31 ibr Carbon-Copy- => Added ibr

    Back to the top


    Powered by Savane 3.3