MCPcopy Index your code
hub / github.com/jesseduffield/lazygit / MakeExecutable

Method MakeExecutable

pkg/integration/components/shell.go:461–469  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

459}
460
461func (self *Shell) MakeExecutable(path string) *Shell {
462 // 0755 sets the executable permission for owner, and read/execute permissions for group and others
463 err := os.Chmod(filepath.Join(self.dir, path), 0o755)
464 if err != nil {
465 panic(err)
466 }
467
468 return self
469}
470
471// Help files are located at test/files from the root the lazygit repo.
472// E.g. You may want to create a pre-commit hook file there, then call this

Calls

no outgoing calls

Tested by

no test coverage detected