lkml.org 
[lkml]   [2018]   [Apr]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: git source files with rw permissions
On Thu, Apr 5, 2018 at 5:53 PM, Joe Perches <joe@perches.com> wrote:
>
> A trivial script on a clean git tree like:
>
> $ git ls-files -- "*.[chsS]" | \
> xargs ls -la | \
> grep -P "^[^l](?:.{2,2}x|.{5,5}x|.{8,8}x)" | \
> awk '{print $9}'

A simpler version of this is:

git ls-files -s '*.[chsS]' | grep '^100755'

and then you can use 'cut -f2' if you just want the filenames and do
the "xargs chmod" thing.

Which I did, and committed, and just pushed out.

Thanks,
Linus

\
 
 \ /
  Last update: 2018-04-07 22:37    [W:0.068 / U:34.240 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site