MCPcopy
hub / github.com/go-git/go-git / nameFromAction

Function nameFromAction

worktree_status.go:124–131  ·  view source on GitHub ↗
(ch *merkletrie.Change)

Source from the content-addressed store, hash-verified

122}
123
124func nameFromAction(ch *merkletrie.Change) string {
125 name := ch.To.String()
126 if name == "" {
127 return ch.From.String()
128 }
129
130 return name
131}
132
133func (w *Worktree) diffStagingWithWorktree(reverse, excludeIgnoredChanges bool) (merkletrie.Changes, error) {
134 idx, err := w.r.Storer.Index()

Callers 1

statusMethod · 0.85

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…