mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-04 02:02:42 +02:00
lint: fix lint issue in lint script
Replace the tabs with spaces.
This commit is contained in:
@@ -47,33 +47,33 @@ fi
|
|||||||
# Taken from git-subtree (Copyright (C) 2009 Avery Pennarun <apenwarr@gmail.com>)
|
# Taken from git-subtree (Copyright (C) 2009 Avery Pennarun <apenwarr@gmail.com>)
|
||||||
find_latest_squash()
|
find_latest_squash()
|
||||||
{
|
{
|
||||||
dir="$1"
|
dir="$1"
|
||||||
sq=
|
sq=
|
||||||
main=
|
main=
|
||||||
sub=
|
sub=
|
||||||
git log --grep="^git-subtree-dir: $dir/*\$" \
|
git log --grep="^git-subtree-dir: $dir/*\$" \
|
||||||
--pretty=format:'START %H%n%s%n%n%b%nEND%n' "$COMMIT" |
|
--pretty=format:'START %H%n%s%n%n%b%nEND%n' "$COMMIT" |
|
||||||
while read a b _; do
|
while read a b _; do
|
||||||
case "$a" in
|
case "$a" in
|
||||||
START) sq="$b" ;;
|
START) sq="$b" ;;
|
||||||
git-subtree-mainline:) main="$b" ;;
|
git-subtree-mainline:) main="$b" ;;
|
||||||
git-subtree-split:) sub="$b" ;;
|
git-subtree-split:) sub="$b" ;;
|
||||||
END)
|
END)
|
||||||
if [ -n "$sub" ]; then
|
if [ -n "$sub" ]; then
|
||||||
if [ -n "$main" ]; then
|
if [ -n "$main" ]; then
|
||||||
# a rejoin commit?
|
# a rejoin commit?
|
||||||
# Pretend its sub was a squash.
|
# Pretend its sub was a squash.
|
||||||
sq="$sub"
|
sq="$sub"
|
||||||
fi
|
fi
|
||||||
echo "$sq" "$sub"
|
echo "$sq" "$sub"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sq=
|
sq=
|
||||||
main=
|
main=
|
||||||
sub=
|
sub=
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# find latest subtree update
|
# find latest subtree update
|
||||||
|
|||||||
@@ -21,7 +21,6 @@ fn get_pathspecs_exclude_whitespace() -> Vec<String> {
|
|||||||
"src/qt/res/src/*.svg",
|
"src/qt/res/src/*.svg",
|
||||||
"test/functional/test_framework/crypto/ellswift_decode_test_vectors.csv",
|
"test/functional/test_framework/crypto/ellswift_decode_test_vectors.csv",
|
||||||
"test/functional/test_framework/crypto/xswiftec_inv_test_vectors.csv",
|
"test/functional/test_framework/crypto/xswiftec_inv_test_vectors.csv",
|
||||||
"test/lint/git-subtree-check.sh",
|
|
||||||
]
|
]
|
||||||
.iter()
|
.iter()
|
||||||
.map(|s| format!(":(exclude){s}")),
|
.map(|s| format!(":(exclude){s}")),
|
||||||
|
|||||||
Reference in New Issue
Block a user