Is there a direct way to list all key/value pairs in a section with git config? E.g., to list all entries under the core section. 
I'm using git config --get-regexp <section-name>, but it seems kind of dumb—why use a regexp when I simply want all of the entries in a section.
On a related note, is there a way to list all configuration entries of the current checked out branch, without having to type in the name of the branch? (I.e. git config --get-regexp branch\.<branch-name>\.)
 
    