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

Method isSymlink

worktree.go:793–798  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

791}
792
793func (w *Worktree) isSymlink(path string) bool {
794 if s, err := w.Filesystem.Lstat(path); err == nil {
795 return s.Mode()&os.ModeSymlink != 0
796 }
797 return false
798}
799
800func (w *Worktree) readGitmodulesFile() (*config.Modules, error) {
801 if w.isSymlink(gitmodulesFile) {

Callers 1

readGitmodulesFileMethod · 0.95

Calls 2

ModeMethod · 0.65
LstatMethod · 0.45

Tested by

no test coverage detected