diff options
Diffstat (limited to 'src/extract.sh')
-rwxr-xr-x | src/extract.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/extract.sh b/src/extract.sh index 3927f38..800cb8f 100755 --- a/src/extract.sh +++ b/src/extract.sh @@ -77,12 +77,12 @@ git ls-files --cached --exclude-standard --other | "$(dirname "$0")"/extract-$ext.sh "$input_file" done | while read -r item; do - start_row=$(echo "$item" | jq '.match.start.row') - end_row=$(echo "$item" | jq '.match.end.row') + start_row=$(echo "$item" | jq .match.start.row) + end_row=$(echo "$item" | jq .match.end.row) - last_commit=$(echo "$item" | jq '.last_commit' -r) - text=$(echo "$item" | jq '.text' -r) - file=$(echo "$item" | jq '.file' -r) + last_commit=$(echo "$item" | jq .last_commit -r) + text=$(echo "$item" | jq .text -r) + file=$(echo "$item" | jq .file -r) first_commit=$(git --no-pager log --reverse -S"$text" --format=%H | \ head -n 1) |