5 // FilterProcessStatus is a constant type representing the various valid
6 // responses for `status=` in the Git filtering process protocol.
7 type FilterProcessStatus uint8
10 // StatusSuccess is a valid response when a successful event has
12 StatusSuccess FilterProcessStatus = iota + 1
13 // StatusDelay is a valid response when a delay has occurred.
15 // StatusError is a valid response when an error has occurred.
19 // String implements fmt.Stringer by returning a protocol-compliant
20 // representation of the receiving status, or panic()-ing if the Status is
22 func (s FilterProcessStatus) String() string {
32 panic(fmt.Sprintf("git: unknown FilterProcessStatus '%d'", s))