diff options
| author | Jeff Carr <[email protected]> | 2024-02-05 19:01:50 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-02-05 19:01:50 -0600 |
| commit | 309cf80e163eac8ea72303d6566a562f9a0347a3 (patch) | |
| tree | 8658d6ee821f46836c28391f2dda736e6990f240 /gitConfig.go | |
| parent | abb1f0ea214d3c5e8a895b42f4e1352ede4ecca4 (diff) | |
`git ls-files`v0.20.0
Signed-off-by: Jeff Carr <[email protected]>
Diffstat (limited to 'gitConfig.go')
| -rw-r--r-- | gitConfig.go | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gitConfig.go b/gitConfig.go index e7c581b..05e8d53 100644 --- a/gitConfig.go +++ b/gitConfig.go @@ -222,6 +222,16 @@ func (rs *RepoStatus) CheckPrimativeGoMod() bool { return true } +func (rs *RepoStatus) GitLsFiles() (bool, string) { + err, output := rs.RunCmd([]string{"git", "ls-files"}) + if err != nil { + log.Warn("git ls-files failed err =", err) + log.Warn("git ls-files failed output =", output) + return false, output + } + return true, output +} + // readGoMod reads and parses the go.sum file (TODO: do the go.mod file) func (rs *RepoStatus) ReadGoMod() bool { if rs.CheckPrimativeGoMod() { |
