git语法
In an effort to improve the user interface to git-pandas, I’m introducing a new way of specifying which files in a repository you care about, which will become the sole way of specifying this kind of thing in version 2.0.0. Currently, for any given function, you can specify a list of extensions you’d like to include, and a list of directories you’d like to exclude. A toy example would be:
为了改善git-pandas的用户界面,我引入了一种新的方式来指定您关心的存储库中的哪些文件,这将成为在2.0.0版中指定此类内容的唯一方式。 当前,对于任何给定的函数,您都可以指定要包括的扩展名列表以及要排除的目录列表。 一个玩具的例子是:
df = repo.some_method(
extensions=['py', 'md', 'html'],
ignore_dir=['docs', 'tests']
)
With this, you’d be looking at python, markdown and HTML files other than those in the docs or tests directories.
这样,您将可以查看docs,tests目录中的python,markdown和HTML文件。