MCPcopy Create free account
hub / github.com/appleboy/drone-git-push / Add

Function Add

repo/commit.go:24–32  ·  view source on GitHub ↗

Add updates the index to match the working tree.

(ctx context.Context)

Source from the content-addressed store, hash-verified

22
23// Add updates the index to match the working tree.
24func Add(ctx context.Context) *exec.Cmd {
25 cmd := exec.CommandContext(
26 ctx,
27 "git",
28 "add",
29 "--all")
30
31 return cmd
32}
33
34// Tag add tag to the working tree.
35func Tag(ctx context.Context, tag string) *exec.Cmd {

Callers 1

HandleCommitMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected