[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130510140328.GC304@dyad.programming.kicks-ass.net>
Date: Fri, 10 May 2013 16:03:28 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Sasha Levin <sasha.levin@...cle.com>
Cc: torvalds@...ux-foundation.org, mingo@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH v3 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage
from userspace
On Fri, May 10, 2013 at 09:23:33AM -0400, Sasha Levin wrote:
> Wait, I'm confused. Over here, patch is fine with creating empty files:
>
> lappy lockdep # touch test.c
> lappy lockdep # git diff /dev/null test.c > test.patch
> lappy lockdep # rm test.c
> lappy lockdep # file test.c
> test.c: ERROR: cannot open `test.c' (No such file or directory)
> lappy lockdep # patch -i test.patch
> patching file test.c
> lappy lockdep # file test.c
> test.c: empty
> lappy lockdep # cat test.patch
> diff --git a/tools/lib/lockdep/test.c b/tools/lib/lockdep/test.c
> new file mode 100644
> index 0000000..e69de29
> lappy lockdep #
>
> So it seems that here patch would cleanly create empty files, what does quilt
> do differently?
root@...ns:~/tmp# touch ponies
root@...ns:~/tmp# git diff /dev/null ponies
diff --git a/ponies b/ponies
new file mode 100644
index 0000000..e69de29
root@...ns:~/tmp# git diff /dev/null ponies > ponies.patch
root@...ns:~/tmp# rm ponies
root@...ns:~/tmp# patch < ponies.patch
patch: **** Only garbage was found in the patch input.
t@...ns:~/tmp# patch --version
patch 2.6.1
Copyright (C) 1988 Larry Wall
Copyright (C) 2003, 2009 Free Software Foundation, Inc.
This program comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of this program
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING.
written by Larry Wall and Paul Eggert
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists