author | Felipe Contreras <felipe.contreras@gmail.com> | |
Wed, 14 Jan 2009 01:37:07 +0000 (03:37 +0200) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 14 Jan 2009 06:57:12 +0000 (22:57 -0800) | ||
commit | 3d1d81eba29d5cfc5b214dc049b743ffbe032ef4 | |
tree | 32bdd4df2903dd3a8e864cf446624dd4d3429e53 | tree | snapshot |
parent | 8faea4f3b2f68a6ef168c6ada1627835380a570d | commit | diff |
fast-import: Cleanup mode setting.
"S_IFREG | mode" makes only sense for 0644 and 0755.
Even though doing (S_IFREG | mode) may not hurt when mode is any other
supported value, that is only true because S_IFREG mode bit happens to
be already on for S_IFLNK or S_IFGITLINK.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
"S_IFREG | mode" makes only sense for 0644 and 0755.
Even though doing (S_IFREG | mode) may not hurt when mode is any other
supported value, that is only true because S_IFREG mode bit happens to
be already on for S_IFLNK or S_IFGITLINK.
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Acked-by: Shawn O. Pearce <spearce@spearce.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
fast-import.c | diff | blob | history |