When defining a commit, clients may specify both an identifier and a branch to the Git object's commit function. In the event the identifier they specify is an integer (instead of the traditional '###.###@<branch>' string) and the branch specified via the 'branch' argument, we don't consult the cache. Notably, this is the way that the 'find' function will pass arguments to 'commit'. We should consult the cache in this circumstance.
<rdar://problem/116366226>
Pull request: https://github.com/WebKit/WebKit/pull/18511
Committed 268750@main (6a5dbe08f760): <https://commits.webkit.org/268750@main> Reviewed commits have been landed. Closing PR #18511 and removing active labels.