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