blob: 203d20c94bc8687927ae7779f0ed3cd321183f1a (
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
26
27
28
29
30
|
// 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
}
func getPorcelain() (string, error) {
s, err := me.forge.Repos.CheckPorcelain()
return s, err
}
|