Can git for-each-ref use options set with git-config?

Viewed 21

After

git config for-each-ref.count 2

running

git for-each-ref refs/heads

shows lots of output, while

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

only shows two, as required.

It seems as if git for-each-ref does not use options set with git-config. If it does, how can I get it to work?

1 Answers

I do not see a for-each-ref.count setting in git config.

And I do not see any reference to count in builtin/for-each-ref.c, except as an option (not a git config setting).

Those are the main reasons why git for-each-ref (be it plumbing or not) would not use that particular (non-existent) option set with git-config.

Related