9// SmartJoin joins two paths, treating the second path as absolute if it is an
11func SmartJoin(one, two string) string {
15 return filepath.Join(one, two)
18// SmartIsAbs checks if a path is absolute, considering both OS-specific and
20func SmartIsAbs(path string) bool {
23 return filepath.IsAbs(path) || strings.HasPrefix(filepath.ToSlash(path), "/")
25 return filepath.IsAbs(path)
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list