Skip to content

Commit

Permalink
Test swapping two topmost commits
Browse files Browse the repository at this point in the history
  • Loading branch information
anttiharju committed Sep 3, 2024
1 parent a661c41 commit 7718de5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bin/gclone
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
set -eu

# Git CLONE:
# Clone a repo via SSH based on https URL or just the repo name.
# Clone a repo via SSH based on https URL or just the repo name. Change

# Check if input argument is provided
if [ $# -eq 0 ]; then
Expand Down
6 changes: 6 additions & 0 deletions scripts/g-docs/commit.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,9 @@ name="github-actions[bot]"
email="41898282+github-actions[bot]@users.noreply.github.com"
GIT_COMMITTER_NAME="$name" GIT_COMMITTER_EMAIL="$email" git commit --no-verify -m \
"Update bin/g docs$source"

# Swap the latest and the second latest commit, YOLO.
# Why: to keep actual commit message on top when opening the repo.
if [ -n "$source" ]; then
GIT_SEQUENCE_EDITOR="sed -i '' -n 'h;1n;2p;g;p'" git rebase -i HEAD~2
fi

0 comments on commit 7718de5

Please sign in to comment.