git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Making file permissions match
@ 2016-08-03 13:46 jonsmirl
  2016-08-03 14:07 ` Torsten Bögershausen
  2016-08-03 14:21 ` Johannes Schindelin
  0 siblings, 2 replies; 4+ messages in thread
From: jonsmirl @ 2016-08-03 13:46 UTC (permalink / raw)
  To: Git Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making file permissions match
  2016-08-03 13:46 Making file permissions match jonsmirl
@ 2016-08-03 14:07 ` Torsten Bögershausen
  2016-08-03 14:14   ` jonsmirl
  2016-08-03 14:21 ` Johannes Schindelin
  1 sibling, 1 reply; 4+ messages in thread
From: Torsten Bögershausen @ 2016-08-03 14:07 UTC (permalink / raw)
  To: jonsmirl@gmail.com; +Cc: Git Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making file permissions match
  2016-08-03 14:07 ` Torsten Bögershausen
@ 2016-08-03 14:14   ` jonsmirl
  0 siblings, 0 replies; 4+ messages in thread
From: jonsmirl @ 2016-08-03 14:14 UTC (permalink / raw)
  To: Torsten Bögershausen; +Cc: Git Mailing List

On Wed, Aug 3, 2016 at 10:07 AM, Torsten Bögershausen <tboegi@web.de> wrote:
> 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

Thanks, that might work. It will take a few hours to check since the
repo is huge.

-- 
Jon Smirl
jonsmirl@gmail.com

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Making file permissions match
  2016-08-03 13:46 Making file permissions match jonsmirl
  2016-08-03 14:07 ` Torsten Bögershausen
@ 2016-08-03 14:21 ` Johannes Schindelin
  1 sibling, 0 replies; 4+ messages in thread
From: Johannes Schindelin @ 2016-08-03 14:21 UTC (permalink / raw)
  To: jonsmirl@gmail.com; +Cc: Git Mailing List

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-08-03 14:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-08-03 13:46 Making file permissions match jonsmirl
2016-08-03 14:07 ` Torsten Bögershausen
2016-08-03 14:14   ` jonsmirl
2016-08-03 14:21 ` Johannes Schindelin

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).