MCPcopy Create free account
hub / github.com/cogentcore/core / diffVCSSelected

Method diffVCSSelected

filetree/vcs.go:213–217  ·  view source on GitHub ↗

diffVCSSelected shows the diffs between two versions of selected files, given by the revision specifiers -- if empty, defaults to A = current HEAD, B = current WC file. -1, -2 etc also work as universal ways of specifying prior revisions. Diffs are shown in a DiffEditorDialog.

(rev_a string, rev_b string)

Source from the content-addressed store, hash-verified

211// -1, -2 etc also work as universal ways of specifying prior revisions.
212// Diffs are shown in a DiffEditorDialog.
213func (fn *Node) diffVCSSelected(rev_a string, rev_b string) { //types:add
214 fn.SelectedFunc(func(sn *Node) {
215 sn.diffVCS(rev_a, rev_b)
216 })
217}
218
219// diffVCS shows the diffs between two versions of this file, given by the
220// revision specifiers -- if empty, defaults to A = current HEAD, B = current WC file.

Callers

nothing calls this directly

Calls 2

SelectedFuncMethod · 0.95
diffVCSMethod · 0.80

Tested by

no test coverage detected