I hereby claim:
- I am bnjmnt4n on github.
- I am bnjmnt4n (https://keybase.io/bnjmnt4n) on keybase.
- I have a public key ASDjdRv5Z2oSFkPX4p2gKo0qjUxXWNLfcM9aAsQYrFV_5Ao
To claim this, I am signing this object:
# Additional Fish completions for Jujutsu | |
# https://gist.github.com/bnjmnt4n/9f47082b8b6e6ed2b2a805a1516090c8 | |
# TODO: passthru other args? E.g.. --at-operation, --repository | |
function __jj | |
command jj --ignore-working-copy --color=never --quiet $argv 2> /dev/null | |
end | |
# Aliases | |
# Based on https://github.com/fish-shell/fish-shell/blob/cd71359c42f633d9d71a63591ae16d150407a2b2/share/completions/git.fish#L625. |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env sh | |
# Obtain the latest tag, include lightweight tags. | |
CURRENT=$(git describe --long --tags) | |
if [[ ${CURRENT} =~ (.*)-([0-9]+)-g[0-9a-z]{7}$ ]]; then | |
# If the current tag is the `HEAD`… | |
if [ ${BASH_REMATCH[2]} -eq "0" ]; then | |
# …compare the current tag and the previous tag. |