blob: 702302a5b751b8f83b8b8a64e86001b136d3a8ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
// Copyright 2017-2025 WIT.COM Inc. All rights reserved.
// Use of this source code is governed by the GPL 3.0
package main
import "go.wit.com/lib/protobuf/gitpb"
func doDirty() (string, error) {
found := me.forge.CheckDirty()
if found.Len() == 0 {
return "nothing dirty", nil
}
var footer string
if argv.Verbose {
footer = me.forge.PrintHumanTableDirty(found)
} else {
footer = me.forge.PrintHumanTable(found)
}
return footer, nil
}
func getDirty() (*gitpb.Repos, string, error) {
found := me.forge.CheckDirty()
return found, "", nil
}
|