]> git.ipfire.org Git - thirdparty/git.git/commit - entry.c
write_entry(): cleanup of some duplicated code
authorKjetil Barvik <barvik@broadpark.no>
Mon, 9 Feb 2009 20:54:50 +0000 (21:54 +0100)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Feb 2009 04:59:26 +0000 (20:59 -0800)
commit4857c761e35b07c12ff2ef1140e93b071b8ac4e7
tree5867ced318f541d8476b20f75125cebe02da9d8b
parent81a9aa60a193f1181149b69920930e15c4e34059
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 <barvik@broadpark.no>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
entry.c