cfg/bin/git-b
Knut Ahlers 1efe7fa3ca
Truncate branch names at 72 chars
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2018-01-07 21:49:27 +01:00

5 lines
78 B
Bash
Executable file

#!/bin/bash
set -euo pipefail
git checkout -b $(slugify "$@" | cut -c 1-72)