MCPcopy
hub / github.com/git-lfs/git-lfs / getAbsolutePath

Method getAbsolutePath

locking/locks.go:146–148  ·  view source on GitHub ↗

getAbsolutePath takes a repository-relative path and makes it absolute. For instance, given a repository in /usr/local/src/my-repo and a file called dir/foo/bar.txt, getAbsolutePath will return: /usr/local/src/my-repo/dir/foo/bar.txt

(p string)

Source from the content-addressed store, hash-verified

144//
145// /usr/local/src/my-repo/dir/foo/bar.txt
146func (c *Client) getAbsolutePath(p string) (string, error) {
147 return filepath.Join(c.LocalWorkingDir, p), nil
148}
149
150// UnlockFile attempts to unlock a file on the current remote
151// path must be relative to the root of the repository

Callers 2

LockFileMethod · 0.95
UnlockFileByIdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected