Re: [PATCH 1/2] fast-import: add special mode; copy from parent.
From: Felipe Contreras <hidden> Date: 2016-06-15 22:45:49
On Mon, Dec 22, 2008 at 12:07 AM, Shawn O. Pearce [off-list ref] wrote:
Felipe Contreras [off-list ref] wrote:
quoted
+ if (!prefixcmp(p, "- ")) {
+ mode = 0;
+ p += 2;
This part made me wonder, why are we always doing "S_IFREG | mode"
further down?
My guess is because 0644 and 0755; doing S_IFREG | mode doesn't
achieve anything for the other modes.
I just sent a patch that I hope makes that more visible.
--
Felipe Contreras