git for each ref是否可以使用git-config设置的选项



之后

git config for-each-ref.count 2

运行

git for-each-ref refs/heads

显示大量输出,而

git for-each-ref --count=2 refs/heads

根据需要仅显示两个。

似乎git for-each-ref没有使用与git-config一起设置的选项。如果是,我该如何让它工作?

我在git config中没有看到for-each-ref.count设置。

我在builtin/for-each-ref.c中没有看到任何对count的引用,除了作为选项(不是git-config设置(。

这些就是git for-each-ref(无论是否为管道(不会使用git-config的特定(不存在(选项集的主要原因。

最新更新