Making file permissions match

4 messages, 3 authors, 2016-08-03 · open the first message on its own page

Making file permissions match

From: jonsmirl@gmail.com <hidden>
Date: 2016-08-03 13:46:14

I'm working with some Windows programmers that don't believe in file
permissions They keep sending me zip files of their source tree.  I
have my copy of the tree in git on Linux with all of the correct file
permissions.

So I unzip the archive they send me and to see what they changed. I
unzip it on top of my git tree. But now all of the file permissions
don't match. The code deltas are there but there is also all of this
noise from the file permissions.

Is there an easy way to deal with this? I want to keep the code deltas
and ignore the permission changes. Since there are about 100K files
this is too much to do manually.

-- 
Jon Smirl
jonsmirl@gmail.com

Re: Making file permissions match

From: Torsten Bögershausen <hidden>
Date: 2016-08-03 14:16:57

On Wed, Aug 03, 2016 at 09:46:06AM -0400, jonsmirl@gmail.com wrote:
I'm working with some Windows programmers that don't believe in file
permissions They keep sending me zip files of their source tree.  I
have my copy of the tree in git on Linux with all of the correct file
permissions.

So I unzip the archive they send me and to see what they changed. I
unzip it on top of my git tree. But now all of the file permissions
don't match. The code deltas are there but there is also all of this
noise from the file permissions.

Is there an easy way to deal with this? I want to keep the code deltas
and ignore the permission changes. Since there are about 100K files
this is too much to do manually.
(I'm not sure if I understand "match" correctly)

You can ignore changes in the executable permissions:
git config core.filemode false

Please let us know if it works

Re: Making file permissions match

From: Johannes Schindelin <hidden>
Date: 2016-08-03 15:36:54

Hi Jon,

On Wed, 3 Aug 2016, jonsmirl@gmail.com wrote:
I'm working with some Windows programmers that don't believe in file
permissions They keep sending me zip files of their source tree.  I
have my copy of the tree in git on Linux with all of the correct file
permissions.

So I unzip the archive they send me and to see what they changed. I
unzip it on top of my git tree. But now all of the file permissions
don't match. The code deltas are there but there is also all of this
noise from the file permissions.

Is there an easy way to deal with this? I want to keep the code deltas
and ignore the permission changes. Since there are about 100K files
this is too much to do manually.
Maybe setting core.filemode=false before committing?

Ciao,
Johannes

Re: Making file permissions match

From: jonsmirl@gmail.com <hidden>
Date: 2016-08-03 17:05:26

On Wed, Aug 3, 2016 at 10:07 AM, Torsten Bögershausen [off-list ref] wrote:
On Wed, Aug 03, 2016 at 09:46:06AM -0400, jonsmirl@gmail.com wrote:
quoted
I'm working with some Windows programmers that don't believe in file
permissions They keep sending me zip files of their source tree.  I
have my copy of the tree in git on Linux with all of the correct file
permissions.

So I unzip the archive they send me and to see what they changed. I
unzip it on top of my git tree. But now all of the file permissions
don't match. The code deltas are there but there is also all of this
noise from the file permissions.

Is there an easy way to deal with this? I want to keep the code deltas
and ignore the permission changes. Since there are about 100K files
this is too much to do manually.
(I'm not sure if I understand "match" correctly)

You can ignore changes in the executable permissions:
git config core.filemode false

Please let us know if it works
Thanks, that might work. It will take a few hours to check since the
repo is huge.

-- 
Jon Smirl
jonsmirl@gmail.com
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help