MCPcopy Create free account
hub / github.com/git/git / isModeExec

Function isModeExec

git-p4.py:777–781  ·  view source on GitHub ↗

Returns True if the given git mode represents an executable file, otherwise False.

(mode)

Source from the content-addressed store, hash-verified

775
776
777def isModeExec(mode):
778 """Returns True if the given git mode represents an executable file,
779 otherwise False.
780 """
781 return mode[-3:] == "755"
782
783
784class P4Exception(Exception):

Callers 2

setP4ExecBitFunction · 0.85
isModeExecChangedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected