We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1bc963b commit 49e49d6Copy full SHA for 49e49d6
amlook
@@ -7,17 +7,6 @@
7
find_commit () {
8
in= commits=
9
10
- if test -z "$commits"
11
- then
12
- blob=$(echo "Message-Id: $1" | git hash-object --stdin)
13
- commits=$(git notes --ref amlog show $blob | sed -e '/^$/d')
14
- fi
15
-
16
17
18
- commits=$(sed -ne "s|^\([0-9a-f]\{40\}\) $1|\1|p" .git/am.log)
19
20
21
if test -z "$commits"
22
then
23
# I know I know there should be "notes grep" command...
@@ -27,6 +16,11 @@ find_commit () {
27
)
28
fi
29
+ if test -z "$commits"
+ then
+ commits=$(sed -ne "s|^\([0-9a-f]\{40\}\) $1|\1|p" .git/am.log)
+ fi
+
30
24
31
25
32
26
echo "Never applied"
0 commit comments