Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cli: add allow-missing flag to commit command #10555

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions dvc/commands/commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ def run(self):
with_deps=self.args.with_deps,
recursive=self.args.recursive,
force=self.args.force,
allow_missing=self.args.allow_missing,
relink=self.args.relink,
)
except DvcException:
Expand Down Expand Up @@ -51,6 +52,12 @@ def add_parser(subparsers, parent_parser):
"outputs did not change."
),
)
commit_parser.add_argument(
"--allow-missing",
action="store_true",
default=False,
help="Ignore errors if some of the files or directories are missing.",
)
commit_parser.add_argument(
"-d",
"--with-deps",
Expand Down
Loading