-
Notifications
You must be signed in to change notification settings - Fork 898
Closed
Description
According to docs this should also stage deleted files, but sadly it does not.
err := worktree.AddWithOptions(&git.AddOptions{
All: true,
})
// AddOptions describes how a add operation should be performed
type AddOptions struct {
// All equivalent to `git add -A`, update the index not only where the
// working tree has a file matching `Path` but also where the index already
// has an entry. This adds, modifies, and removes index entries to match the
// working tree. If no `Path` nor `Glob` is given when `All` option is
// used, all files in the entire working tree are updated.
All bool
// Path is the exact filepath to a the file or directory to be added.
Path string
// Glob adds all paths, matching pattern, to the index. If pattern matches a
// directory path, all directory contents are added to the index recursively.
Glob string
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels