之后
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
的特定(不存在(选项集的主要原因。