INNER CODE UNIT · Go

worktreePlanFile

umputun/ralphex · cmd/ralphex/main.go:848

func worktreePlanFile(planFile, repoRoot, wtPath string) string {
	if !filepath.IsAbs(planFile) {
		return ""
	}
	resolved := planFile
	if r, err := filepath.EvalSymlinks(resolved); err == nil {
		resolved = r
	}
	rel, err := filepath.Rel(repoRoot, resolved)
	if err != nil {
		return ""
	}
	return filepath.Join(wtPath, rel)
}

// openGitService creates a git.Service for the current directory.
// vcsCmd specifies the vcs command to use (e.g. "git" or path to a wrapper script).
func openGitService(colors *progress.Colors, vcsCmd string) (*git.Service, error) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…