Skip to content
  • Sietse Brouwer's avatar
    revset_gitnode: allow abbreviated hashes · a128b9a53b5a
    Sietse Brouwer authored
    The previous implementation only allowed passing 40-hexdigit hashes or
    12-hexdigit abbreviations to `gitnode(hash)`. Shorter or longer hashes
    were accepted, but failed silently. With this fix, any unambiguous
    abbreviation is accepted. `gitnode(a5b)` selects the revision whose Git hash
    starts with `a5b`, if there is one, and aborts if there are several.
    a128b9a53b5a