mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
add: cleanup .gitignore decorator
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import yaml
|
||||
import os
|
||||
|
||||
from dvc.scm import Git
|
||||
@@ -21,6 +22,11 @@ def get_gitignore_content():
|
||||
return gitignore.readlines()
|
||||
|
||||
|
||||
def load_stage_file(path):
|
||||
with open(path, "r") as fobj:
|
||||
return yaml.safe_load(fobj)
|
||||
|
||||
|
||||
@contextmanager
|
||||
def cd(newdir):
|
||||
prevdir = os.getcwd()
|
||||
|
||||
Reference in New Issue
Block a user