According to the man page for git-config, the --git-all option is not
supposed to return an error code:
Like get, but does not fail if the number of values for the key is
not exactly one.
IMHO, zero is also "not exactly one", but I still get a 1 exit code if the
key does not exist.
My .git/config says this:
mastr = upstream/master
git-config --get-all does this:
$ git config --get-all user.cq.branch.master
$ echo $?
$ git config --get-all user.cq.branch.mastr
$ echo $?
I just want git to return nothing if the key doesn't exist. I don't want
it to return an exit code. Is there a way to do this? I think either the
code is broken or the documentation needs to be changed.
I'm running git version 126.96.36.199
Linux kernel developer at Freescale
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majord...@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html