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

 
 
Show feedback again

bug #26539: Cannot create empty files

Submitted by:  Andreas Gruenbacher <agruen>
Submitted on:  Tue 12 May 2009 01:16:59 PM UTC  
 
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.

 

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 512 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 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 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter 421 here (basic anti-spam test):

     

     

    No Changes Have Been Made to This Item
    Show feedback again

    Back to the top


    Powered by Savane 3.1-cleanup