[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Quilt-dev] handling empty new files
From: |
jerome lacoste |
Subject: |
[Quilt-dev] handling empty new files |
Date: |
Wed, 10 Aug 2005 13:13:03 +0200 |
I am having problems to generate a patch with a new empty file.
Here's a test case that exhibits the problem in quilt.
The message "Nothing in patch test.diff" is was gets printed instead
of "Refreshed..."
$ mkdir -p d/patches
$ cd d
$ quilt new test.diff
> Patch test.diff is now on top
$ quilt add file.txt
> File file.txt added to patch test.diff
$ touch file.txt
$ quilt refresh
> Refreshed patch test.diff
# $ quilt diff
$ cd ..
$ rm -rf d
The problem lies in the inability for diff to generate a diff for new
empty files (used in diff_file in patchfns):
rm file.txt
touch file.txt
diff /dev/null file.txt
produces nothing.
Any idea?
Jerome
- [Quilt-dev] handling empty new files,
jerome lacoste <=