MCPcopy Create free account
hub / github.com/cloudflare/artifact-fs / CommitTimestamp

Method CommitTimestamp

internal/gitstore/gitstore.go:809–819  ·  view source on GitHub ↗

CommitTimestamp returns the committer timestamp of the given commit OID.

(ctx context.Context, repo model.RepoConfig, oid string)

Source from the content-addressed store, hash-verified

807 _, err := runGit(ctx, repo.GitDir, args...)
808 return err
809 })
810}
811
812func (s *Store) FetchRefNonInteractive(ctx context.Context, repo model.RepoConfig, ref string) error {
813 return s.fetchRef(ctx, repo, ref, nonInteractiveGitEnv())
814}
815
816func (s *Store) FetchRefWithCredentials(ctx context.Context, repo model.RepoConfig, ref string) error {
817 _, env, err := credentialEnv(repo.RemoteURL)
818 if err != nil {
819 return err
820 }
821 return s.fetchRef(ctx, repo, ref, env)
822}

Callers

nothing calls this directly

Calls 1

runGitFunction · 0.85

Tested by

no test coverage detected