MCPcopy Create free account
hub / github.com/go-git/go-git / isSymlink

Method isSymlink

worktree.go:820–825  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

818}
819
820func (w *Worktree) isSymlink(path string) bool {
821 if s, err := w.Filesystem.Lstat(path); err == nil {
822 return s.Mode()&os.ModeSymlink != 0
823 }
824 return false
825}
826
827func (w *Worktree) readGitmodulesFile() (*config.Modules, error) {
828 if w.isSymlink(gitmodulesFile) {

Callers 1

readGitmodulesFileMethod · 0.95

Calls 2

LstatMethod · 0.80
ModeMethod · 0.65

Tested by

no test coverage detected