Thread (8 messages) flat view 8 messages, 3 authors, 2016-06-15

Re: [RESEND PATCH] fast-import: Cleanup mode setting.

From: Felipe Contreras <hidden>
Date: 2016-06-15 22:45:56

On Wed, Jan 14, 2009 at 4:29 AM, Shawn O. Pearce [off-list ref] wrote:
Johannes Schindelin [off-list ref] wrote:
quoted
On Tue, 13 Jan 2009, Shawn O. Pearce wrote:
quoted
It cleans up the code to make it more readable.

It makes no sense to be doing S_IFREG | S_IFLINK, which happens when
the input is for a symlink.  It doesn't break anything to do that |
operation, but it also looks damn odd when reading the function.
Imagining myself reading the commit message 6 months from now, in all
likeliness I will have wished that those two paragraphs were in there.
Verbatim.
Maybe Junio or Felipe can copy it into the message.

Or you can use a git note now to attach it to the commit Junio
hasn't yet created, so you can look it up in the future.  :-)
How about the attached patch?

"S_IFREG | mode" probably is only required for 0644 and 0755.

It doesn't make sense to do S_IFREG | S_IFLINK (0100000 | 0120000),
since no bits are changed.

-- 
Felipe Contreras

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help