-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.go
34 lines (30 loc) · 1.06 KB
/
constants.go
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
31
32
33
34
package main
// ANSI escape codes.
const (
// LightRed style for text.
LightRed = "\033[91m"
// LightGreen style for text.
LightGreen = "\033[92m"
// Reset style.
Reset = "\033[0m"
// Unmerged means the file is unmerged, meaning there is a conflict.
Unmerged = "U "
// UnmergedAdded means the file is unmerged, and the file on the other branch was added.
UnmergedAdded = "UA"
// UnmergedDeleted means the file is unmerged, and the file on the current branch was deleted.
UnmergedDeleted = "UD"
// MergeConflictBothSides means both the file in the current branch and the file being merged have conflicts.
MergeConflictBothSides = "UU"
// StagedAdded means an added file staged change.
StagedAdded = "A "
// StagedModified means a modified file staged change.
StagedModified = "M "
// StagedDeleted means a deleted file staged change.
StagedDeleted = "D "
// StagedRenamed means a renamed file staged change.
StagedRenamed = "R "
// StagedCopied means a copied file staged change.
StagedCopied = "C "
// MaxAttempts represents maximum reties.
MaxAttempts = 5
)