Skip to content

Commit

Permalink
Refactor git hash preview script to show only the first matching hash
Browse files Browse the repository at this point in the history
  • Loading branch information
kelleyma49 committed Nov 16, 2024
1 parent 6902094 commit 95ccf19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers/PsFzfGitHashes-Preview.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ hash=$1

pushd . > /dev/null
cd "$dir"
echo $hash | grep -o "[a-f0-9]\{7,\}" | xargs git show $args
echo $hash | grep -o "[a-f0-9]\{7,\}" -m 1 | head -1 | xargs git show $args
popd > /dev/null

0 comments on commit 95ccf19

Please sign in to comment.