Commit 1e24c242 authored by nimrod's avatar nimrod
Browse files

- Moved git last-commit to a script.

parent efd47555
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -11,7 +11,6 @@
    ff = merge --no-edit --ff-only master
    fixup = !git commit --fixup $(git last-commit)
    forget = reset HEAD^
    last-commit = "!git log --no-merges --abbrev-commit --format=\"%h %s\" | awk '{if ($2 != \"fixup!\" && $2 != \"squash!\") {print $1; exit}}'"
    merg = merge --no-edit
    posh = push --set-upstream origin HEAD
    pul = pull --progress
+4 −0
Original line number Diff line number Diff line
#!/bin/sh
set -eu

git log --no-merges --abbrev-commit --format="%h %s" | awk '{if ($2 != "fixup!" && $2 != "squash!") {print $1; exit}}'