Skip to content

Commit

Permalink
Do contents comparison in bowie/preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kimono-koans committed Jan 6, 2024
1 parent f442406 commit 87d8dec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/bowie.bash
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ show_all_changes() {

while read -r line; do
all_versions+=("$line")
done <<<"$(httm -n --omit-ditto "$filename")"
done <<<"$(httm -n --unique=contents --omit-ditto "$filename")"

# check if versions array is not empty
if [[ ${#all_versions[@]} -eq 0 ]]; then
Expand Down Expand Up @@ -140,7 +140,7 @@ show_single_change() {
local mode="$2"

[[ "$mode" != "select" ]] || previous_version="$(httm --select --raw "$current_version")"
[[ "$mode" != "last" ]] || previous_version="$(httm --last-snap=no-ditto --raw "$current_version")"
[[ "$mode" != "last" ]] || previous_version="$(httm --unique=contents --omit-ditto --last-snap --raw "$current_version")"

display_header "$current_version"
check_not_identical "$previous_version" "$current_version"
Expand Down

0 comments on commit 87d8dec

Please sign in to comment.