Permalink
Cannot retrieve contributors at this time
executable file
14 lines (11 sloc)
278 Bytes
|
#!/usr/bin/env bash |
|
|
|
set -eu |
|
|
|
default_branch=$(git default-branch) |
|
|
|
if ! [ $# -eq 0 ]; then |
|
git commit --fixup "$1" |
|
else |
|
git --no-pager log $default_branch.. --pretty=format:"%h %s" | |
|
selecta | |
|
awk '{print $1}' | |
|
{ read commit; git commit --fixup $commit; } |
|
fi |
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session.
You signed out in another tab or window. Reload to refresh your session.