diff options
Diffstat (limited to 'doDev.go')
| -rw-r--r-- | doDev.go | 42 |
1 files changed, 0 insertions, 42 deletions
@@ -6,7 +6,6 @@ package main import ( "errors" "fmt" - "path/filepath" "strings" "go.wit.com/lib/protobuf/forgepb" @@ -31,47 +30,6 @@ func doDev() (string, error) { return "go generate done", nil } - if argv.Dev.Untracked { - // show untracked files - // git ls-files --others - // git ls-files --others --exclude-standard - // git ls-files --others --ignored --exclude-standard - var count int - var filelist []string - found := gitpb.NewRepos() - for repo := range me.forge.Repos.IterByNamespace() { - var err error - r, err := repo.RunQuiet([]string{"git", "ls-files", "--others"}) - if err != nil { - continue - } - if len(r.Stdout) == 0 { - continue - } - count += len(r.Stdout) - for _, fname := range r.Stdout { - filelist = append(filelist, filepath.Join(repo.FullPath, fname)) - } - repo.State = log.Sprintf("%d files", len(r.Stdout)) - found.Append(repo) - } - me.forge.PrintHumanTable(found) - log.Info("") - log.Info("You have %d files that are untracked excluded git files. They are probably junk.", count) - log.Info("") - log.Info("You can remove these files with '--fix' or list them all with '--verbose'") - log.Info("") - if argv.Fix { - log.Info("todo: unlink them") - } - if argv.Verbose { - for _, fname := range filelist { - log.Info(fname) - } - } - return "", nil - - } if argv.Dev.Prune { // git fetch --prune for repo := range me.forge.Repos.IterByNamespace() { |
