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: NoneSeverity: 3 - Normal
Item Group: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich 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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to 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
    Mon 25 Oct 2010 11:59:18 AM UTCpebolleCarbon-Copy-=>Added pebolle
    Sun 31 Jan 2010 01:50:57 PM UTCibrCarbon-Copy-=>Added ibr

    Back to the top


    Powered by Savane 3.1-cleanup