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

Method GitCommit

x/release/command.go:163–178  ·  view source on GitHub ↗
(ctx context.Context, commit string)

Source from the content-addressed store, hash-verified

161}
162
163func (m projectFS) GitCommit(ctx context.Context, commit string) error {
164 if !m.dryRun && m.beforeCommitHook != nil {
165 if err := m.beforeCommitHook(); err != nil {
166 return err
167 }
168 }
169 var prefix string
170 if m.skipGit {
171 prefix = "[skip] "
172 }
173 m.logger.Printf(prefix+"git commit: '%s'", commit)
174 if m.dryRun || m.skipGit {
175 return nil
176 }
177 return gitCommit(ctx, commit)
178}
179
180func newRepoData(versionExtraAllowList []string) (helper.RepoData, error) {
181 cwd, err := os.Getwd()

Callers

nothing calls this directly

Calls 2

gitCommitFunction · 0.85
PrintfMethod · 0.65

Tested by

no test coverage detected