add: create ADD_EDIT.patch with mode 0666
commit6ff2b729debc07fce5c5c1226f9fee9ea59cd7ab
authorJeff King <peff@peff.net>
Tue, 10 Jul 2012 06:37:22 +0000 (10 02:37 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Jul 2012 06:47:26 +0000 (9 23:47 -0700)
tree72ba9b09c5bde5b81a9da79b69464d742937dd5f
parentfd9563385f34c888408cf4f8683b1745ca2cf77a
add: create ADD_EDIT.patch with mode 0666

We should be letting the user's umask take care of
restricting permissions. Even though this is a temporary
file and probably nobody would notice, this brings us in
line with other temporary file creations in git (e.g.,
choosing "e"dit from git-add--interactive).

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/add.c