MCPcopy Create free account
hub / github.com/libgit2/git2go / DescribeFormatOptions

Struct DescribeFormatOptions

describe.go:60–71  ·  view source on GitHub ↗

DescribeFormatOptions can be used for formatting the describe string. You can use DefaultDescribeFormatOptions() to get default options.

Source from the content-addressed store, hash-verified

58//
59// You can use DefaultDescribeFormatOptions() to get default options.
60type 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.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected