From: Kjetil Barvik Date: Mon, 9 Feb 2009 20:54:50 +0000 (+0100) Subject: write_entry(): cleanup of some duplicated code X-Git-Tag: v1.6.3-rc0~147^2~14 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/4857c761e35b07c12ff2ef1140e93b071b8ac4e7?ds=inline;hp=4857c761e35b07c12ff2ef1140e93b071b8ac4e7 write_entry(): cleanup of some duplicated code The switch-cases for S_IFREG and S_IFLNK was so similar that it will be better to do some cleanup and use the common parts of it. And the entry.c file should now be clean for 'gcc -Wextra' warnings. Signed-off-by: Kjetil Barvik Signed-off-by: Junio C Hamano ---