From: Shawn O. Pearce <hidden> Date: 2016-06-15 22:45:56
Johannes Schindelin [off-list ref] wrote:
On Wed, 14 Jan 2009, Felipe Contreras wrote:
quoted
"S_IFREG | mode" probably is only required for 0644 and 0755.
Why should we want to have that patch? IOW what does it fix, and what
might it break?
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.
--
Shawn.
From: Johannes Schindelin <hidden> Date: 2016-06-15 22:45:56
Hi,
On Tue, 13 Jan 2009, Shawn O. Pearce wrote:
Johannes Schindelin [off-list ref] wrote:
quoted
On Wed, 14 Jan 2009, Felipe Contreras wrote:
quoted
"S_IFREG | mode" probably is only required for 0644 and 0755.
Why should we want to have that patch? IOW what does it fix, and what
might it break?
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.
Ciao,
Dscho
From: Shawn O. Pearce <hidden> Date: 2016-06-15 22:45:56
Johannes Schindelin [off-list ref] wrote:
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. :-)
--
Shawn.
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
From: Shawn O. Pearce <hidden> Date: 2016-06-15 22:45:56
Felipe Contreras [off-list ref] wrote:
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.