From 4dfc5dae8d4a9fe50c3d8d631e9538bdd99d8336 Mon Sep 17 00:00:00 2001 From: sagunji Date: Mon, 28 Oct 2019 11:47:48 +0545 Subject: [PATCH 1/2] Comment out --all-commits optional arg --- dvc/command/gc.py | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dvc/command/gc.py b/dvc/command/gc.py index 699f88304b..ede813b0f4 100644 --- a/dvc/command/gc.py +++ b/dvc/command/gc.py @@ -79,12 +79,13 @@ def add_parser(subparsers, parent_parser): default=False, help="Keep data files for all git tags.", ) - gc_parser.add_argument( - "--all-commits", - action="store_true", - default=False, - help="Keep data files for all commits.", - ) + # Issue number 2681 + # gc_parser.add_argument( + # "--all-commits", + # action="store_true", + # default=False, + # help="Keep data files for all commits.", + # ) gc_parser.add_argument( "-c", "--cloud", From f4d110622110bdac6811a44bf8c516929d741278 Mon Sep 17 00:00:00 2001 From: sagunji Date: Mon, 28 Oct 2019 20:50:37 +0545 Subject: [PATCH 2/2] Suppress --all-commits optional arg --- dvc/command/gc.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/dvc/command/gc.py b/dvc/command/gc.py index ede813b0f4..45d774f6d4 100644 --- a/dvc/command/gc.py +++ b/dvc/command/gc.py @@ -79,13 +79,12 @@ def add_parser(subparsers, parent_parser): default=False, help="Keep data files for all git tags.", ) - # Issue number 2681 - # gc_parser.add_argument( - # "--all-commits", - # action="store_true", - # default=False, - # help="Keep data files for all commits.", - # ) + gc_parser.add_argument( + "--all-commits", + action="store_true", + default=False, + help=argparse.SUPPRESS, + ) gc_parser.add_argument( "-c", "--cloud",