From 0a347bde629c090476c6b47ca936351a1c50ecea Mon Sep 17 00:00:00 2001 From: Your Name Date: Thu, 25 Jul 2024 18:45:13 -0400 Subject: [PATCH] fixup! --- src/squash_fixups.sh | 16 ++++++++++++++++ src/squash_fixups.sh.sha256 | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/src/squash_fixups.sh b/src/squash_fixups.sh index a929acc..2ec0080 100644 --- a/src/squash_fixups.sh +++ b/src/squash_fixups.sh @@ -19,3 +19,19 @@ squash_fixups() { echo "Interactive rebase initiated to squash commits starting with 'fixup!'." } +# Function to stage changes, commit with 'fixup!', and push +push_fixup() { + # Ensure we are in a git repository + if ! git rev-parse --is-inside-work-tree > /dev/null 2>&1; then + echo "Not inside a git repository." + return 1 + fi + + # Stage all changes, commit with 'fixup!', and push + git add . + git commit -m 'fixup!' + git push + + echo "Changes staged, committed with 'fixup!', and pushed." +} + diff --git a/src/squash_fixups.sh.sha256 b/src/squash_fixups.sh.sha256 index 2e06234..a1c48ab 100644 --- a/src/squash_fixups.sh.sha256 +++ b/src/squash_fixups.sh.sha256 @@ -1 +1 @@ -3dd9a3855d3c9b1537c16f50b62a960eed969840ce531d4946d09b52e0690f82 +b1eb4d54c3623dfdaef8293ce8fa2bfdb1397d59d135711e43a5a21e882cc2ed