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

Method modeOctal

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

modeOctal renders the git mode as a six-digit octal string (e.g. 100644).

()

Source from the content-addressed store, hash-verified

56
57// modeOctal renders the git mode as a six-digit octal string (e.g. 100644).
58func (e dirEntry) modeOctal() string {
59 return fmt.Sprintf("%06o", e.Mode)
60}
61
62// ExportData implements the cmdutil exportable interface for a single entry.
63func (e dirEntry) ExportData(fields []string) map[string]interface{} {

Callers 3

ExportDataMethod · 0.95
writeTSVFunction · 0.80
Test_dirEntry_modeOctalFunction · 0.80

Calls

no outgoing calls

Tested by 1

Test_dirEntry_modeOctalFunction · 0.64