aboutsummaryrefslogtreecommitdiffstats
path: root/stable-find-alts
blob: 3791d1a3f9eb7213d80d4c262255cc829c7aef4d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
#
# Show all commits with same subject line in the repository.
#

if [ "$#" -ne 1 ]; then
	echo "Usage: stable find-alts <commit sha1>"
	exit 1
fi

subj=$(git log -1 --pretty="%s" $1)
if [ $? -gt 0 ]; then
	exit 1
fi

for i in $(git log -F --grep "$subj" --format="%H" $OTHER_STABLE_TREES); do
	cursubj=$(git log -1 --format="%s" $i)
	if [ "$subj" = "$cursubj" ]; then
		echo $i
	fi
done