Add updates the index to match the working tree.
(ctx context.Context)
| 22 | |
| 23 | // Add updates the index to match the working tree. |
| 24 | func 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. |
| 35 | func Tag(ctx context.Context, tag string) *exec.Cmd { |