mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-19 15:28:28 +01:00
git: add a note referencing gitignore pattern
This commit is contained in:
@@ -165,6 +165,7 @@ class Git(Base):
|
||||
|
||||
@staticmethod
|
||||
def _escape(entry):
|
||||
# Reference: https://git-scm.com/docs/gitignore#_pattern_format
|
||||
meta_characters = r"[]!*#"
|
||||
|
||||
return "".join("\\" + x if x in meta_characters else x for x in entry)
|
||||
|
||||
Reference in New Issue
Block a user