git语法_在git-pandas中引入统一的glob语法

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文件。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值