Description
Map a supported Git mode string to an object-kind label.
Git and diff tokens encode references, object metadata and patch coordinates. Parsing a local token does not resolve repository objects, establish identity or prove that a patch is complete or applicable.
Map a supported Git mode string to an object-kind label.
When to use this tool
Use Development: Git Mode Permission Label when inspecting the stated bounded Git or patch token.
How to use the tool and how it works
- Enter mode. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read result. Expand result to inspect the returned fields.
Map a supported Git mode string to an object-kind label. Accept 100644, 100755, 120000, 160000 or 040000 and return regular, executable, symlink, gitlink or tree.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| mode | Mode | Required. Text; one of "100644", "100755", "120000", "160000", "040000". Implementation limit: 8192 Unicode code points and 16384 UTF-16 code units. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| result | Returned object; expand its named members below. | Required. Object. |
| result.kind | Kind | Calculated result member: string. |
{
"input": {
"mode": "100755"
},
"output": {
"result": {
"kind": "executable"
}
}
} Limitations and assumptions
- This interprets a token, not actual permissions, target contents or platform execution behavior.
- Outputs are nested inside result. Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
Alternative or Complementary methods
Use Git itself against the intended repository for object resolution, complete validation, history interpretation or patch application.
References
Similar or alternative tools
- Git Log Record Field Delimiter Token
Count delimiter-looking substitutions in a Git log format string.
- Git Ignore Negation Escape Pair
Distinguish leading ignore-pattern negation from escaped exclamation.