MCPcopy Create free account
hub / github.com/docker/secrets-engine / GitTag

Method GitTag

x/release/command.go:145–161  ·  view source on GitHub ↗
(ctx context.Context, tag string)

Source from the content-addressed store, hash-verified

143}
144
145func (m projectFS) GitTag(ctx context.Context, tag string) error {
146 var prefix string
147 if m.skipGit {
148 prefix = "[skip] "
149 }
150 m.logger.Printf(prefix+"git tag: '%s'", tag)
151 if m.dryRun || m.skipGit {
152 return nil
153 }
154 if err := gitTag(ctx, tag); err != nil {
155 return err
156 }
157 if !m.noPropagate && !m.dryRun {
158 return gitPushTags(ctx)
159 }
160 return nil
161}
162
163func (m projectFS) GitCommit(ctx context.Context, commit string) error {
164 if !m.dryRun && m.beforeCommitHook != nil {

Callers

nothing calls this directly

Calls 3

gitTagFunction · 0.85
gitPushTagsFunction · 0.85
PrintfMethod · 0.65

Tested by

no test coverage detected