DescribeFormatOptions can be used for formatting the describe string. You can use DefaultDescribeFormatOptions() to get default options.
| 58 | // |
| 59 | // You can use DefaultDescribeFormatOptions() to get default options. |
| 60 | type DescribeFormatOptions struct { |
| 61 | // Size of the abbreviated commit id to use. This value is the |
| 62 | // lower bound for the length of the abbreviated string. |
| 63 | AbbreviatedSize uint // default: 7 |
| 64 | |
| 65 | // Set to use the long format even when a shorter name could be used. |
| 66 | AlwaysUseLongFormat bool |
| 67 | |
| 68 | // If the workdir is dirty and this is set, this string will be |
| 69 | // appended to the description string. |
| 70 | DirtySuffix string |
| 71 | } |
| 72 | |
| 73 | // DefaultDescribeFormatOptions returns default options for formatting |
| 74 | // the output. |
nothing calls this directly
no outgoing calls
no test coverage detected