Yep, I did something similar for coreutils some time ago.

    git_modules_config () {
      GIT_CONFIG=.gitmodules git config "$@"
    }

Do you know if one is more portable than the other?

It's the same. --file was introduced in September 2007 (v.1.5.3), the same release that introduced submodule support.

(Not that I had checked, I must admit).

Paolo


Reply via email to