MCPcopy Index your code
hub / github.com/git-bug/git-bug / Format

Method Format

repository/tree_entry.go:47–49  ·  view source on GitHub ↗

Format the entry as a git ls-tree compatible line

()

Source from the content-addressed store, hash-verified

45
46// Format the entry as a git ls-tree compatible line
47func (entry TreeEntry) Format() string {
48 return fmt.Sprintf("%s %s\t%s\n", entry.ObjectType.Format(), entry.Hash, entry.Name)
49}
50
51func (ot ObjectType) Format() string {
52 switch ot {

Callers 10

markOperationAsExportedFunction · 0.45
ImportAllMethod · 0.45
runBridgeAuthShowFunction · 0.45
runUserShowFunction · 0.45
bugsOrgmodeFormatterFunction · 0.45
PromptCredentialFunction · 0.45
prepareTreeEntriesFunction · 0.45
TestTreeEntryFormatFunction · 0.45
FormatTimeMethod · 0.45
renderMainMethod · 0.45

Calls

no outgoing calls

Tested by 1

TestTreeEntryFormatFunction · 0.36