Skip to content

Instantly share code, notes, and snippets.

View Raimo33's full-sized avatar
๐ŸŒŽ

Raimo Raimo33

๐ŸŒŽ
View GitHub Profile
@Raimo33
Raimo33 / test_commits.sh
Last active October 24, 2025 13:44
Test the previous N commits sequentially (Bitcoincore)
#!/usr/bin/env bash
set -e
N=${1:-1}
CURRENT_COMMIT=$(git rev-parse HEAD)
COMMITS=$(git rev-list --max-count="$N" --reverse HEAD)
trap 'git checkout -q "$CURRENT_COMMIT"' EXIT SIGINT SIGTERM
#!/usr/bin/env bash
set -e
N=${1:-1}
FILTER=${2:-}
TIME=${3:-}
CURRENT_COMMIT=$(git rev-parse HEAD)
COMMITS=$(git rev-list --max-count="$N" --reverse HEAD)