MCPcopy Index your code
hub / github.com/cli/cli / isExecutable

Method isExecutable

pkg/cmd/repo/read-dir/http.go:53–55  ·  view source on GitHub ↗

isExecutable reports whether the entry is a regular file with an executable bit set.

()

Source from the content-addressed store, hash-verified

51
52// isExecutable reports whether the entry is a regular file with an executable bit set.
53func (e dirEntry) isExecutable() bool {
54 return e.Type == "file" && e.Mode&0o111 != 0
55}
56
57// modeOctal renders the git mode as a six-digit octal string (e.g. 100644).
58func (e dirEntry) modeOctal() string {

Callers 2

writeTableFunction · 0.80

Calls

no outgoing calls

Tested by 1