Timur Tabi <timur@xxxxxxxxxxxxx> writes: > According to the man page for git-config, the --git-all option is not > supposed to return an error code: > > --get-all > 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",... It should have stated "like get, but unlike get, it does not fail when there are multiple values for the key", but the documentation was written with that specific knowledge that "--get" has a logic to make it fail when there are ambiguities, and wanted to stress that difference. It forgot to mention their similarity explicitly and relied on "Like get" part to mean (1) shows the value(s) given to the key, and (2) it is an error if there is no such key defined. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html