backupRef constant

String const backupRef

Ref that anchors the snapshot created by createBackup.

A bare git stash create commit is unreferenced and can be reclaimed by git gc. Anchoring it means a hook that dies before it can restore (SIGKILL, crashed terminal, power loss) still leaves the user's work recoverable with git stash apply refs/hooksman/backup.

Implementation

static const backupRef = 'refs/hooksman/backup';