fixup! (desktop) Gen 490: split nixcommit into two scripts, one for committing one for pushing. also renamed nixswitch to rebuild

This commit is contained in:
pagedMov
2024-10-15 19:48:29 -04:00
parent e3ac2e4f63
commit 1441353258
3 changed files with 8 additions and 3 deletions

View File

@@ -27,6 +27,9 @@ if [ -z "$1" ]; then
commits=$(git log origin/$(git rev-parse --abbrev-ref HEAD)..HEAD --oneline)
if [ -n "$commits" ]; then
git commit --fixup HEAD
echo "No commit message given"
echo "Squashing into most recent commit"
git rebase --autosquash master
else
echo "No prior local commits to squash into, please provide a commit message"
exit