forked from toolshed/abra
3c24ae8111
ShortenID and SmallSHA sliced their input to a fixed length without checking it was long enough, panicking on shorter strings. Return the input unchanged when it is already shorter than the cut. Also replace the blank Commit placeholder with an explicit "unknown-commit" sentinel. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>