4 lines
141 B
Plaintext
4 lines
141 B
Plaintext
|
#!/bin/sh
|
||
|
# Save HEAD commit hash to "snap" file in git dir
|
||
|
echo Snapped $(git rev-parse HEAD | tee "$(git rev-parse --git-dir)/${1:-snap}")
|