6
0
mirror of https://github.com/grdl/git-get.git synced 2026-02-10 03:49:25 +00:00

Refactor Clone method to use go-git

This commit is contained in:
Grzegorz Dlugoszewski
2020-05-27 12:54:49 +02:00
parent 616b476ce1
commit b94e655d4a
5 changed files with 99 additions and 19 deletions

View File

@@ -37,7 +37,7 @@ func (r *Repo) LoadStatus() error {
return nil
}
// hasUntracked returns true if there's any untracked file in the worktree
// hasUntracked returns true if there are any untracked files in the worktree
func hasUntracked(status git.Status) bool {
for _, fs := range status {
if fs.Worktree == git.Untracked {
@@ -45,4 +45,5 @@ func hasUntracked(status git.Status) bool {
}
}
return false
}