Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom de Vries <tdevries@suse.de>
To: Tom Tromey <tom@tromey.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [PATCH v2] [pre-commit] Add file mode check
Date: Wed, 17 Jun 2026 20:39:27 +0200	[thread overview]
Message-ID: <cc276a63-9883-430d-843f-4e8bd035d765@suse.de> (raw)
In-Reply-To: <87eci55aqu.fsf@tromey.com>

On 6/17/26 7:37 PM, Tom Tromey wrote:
>>>>>> "Tom" == Tom de Vries <tdevries@suse.de> writes:
> 
> Tom> +git ls-files --stage -- "${no_exec_files[@]}" \
> Tom> +    | (! grep '^100755 ')
> 
> I was curious why this check in particular is used.
> Is there something that would ensure that an executable file would only
> have this mode?
> 

Here ( https://git-scm.com/docs/gitdatamodel ) it says:
...
In the output above, Git displays the file type of each tree entry using 
a format that’s loosely modelled on Unix file modes (100644 is "regular 
file", 100755 is "executable file", 120000 is "symbolic link", 040000 is 
"directory", and 160000 is "gitlink").
...

So yes, that seems to be the case.

Thanks,
- Tom

> thanks,
> Tom


      reply	other threads:[~2026-06-17 18:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-05 11:21 Tom de Vries
2026-06-15  8:18 ` Tom de Vries
2026-06-17 17:37 ` Tom Tromey
2026-06-17 18:39   ` Tom de Vries [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc276a63-9883-430d-843f-4e8bd035d765@suse.de \
    --to=tdevries@suse.de \
    --cc=gdb-patches@sourceware.org \
    --cc=tom@tromey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox