Skip to content

Commit

Permalink
Rename regression test utils
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-gp committed Jul 17, 2023
1 parent 6a70341 commit f8bf10d
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions scripts/utils
Original file line number Diff line number Diff line change
@@ -1,22 +1,24 @@
# usage: source scripts/utils
# shellcheck shell=bash

function gdiff {
# regression tests diff
function reg {
GIT_PAGER="LESS=R less" git diff "$@" -- tests/{highlighted,theme}
}

function gdiffs {
gdiff --staged "$@"
function regs {
reg --staged "$@"
}

function gdiffm {
gdiff main "$@"
function regm {
reg main "$@"
}

# to exclude e.g. THEME-italics, do:
# gdiff -- ":^*-italics*"

function gshow {
# regression tests show
function regshow {
GIT_PAGER="LESS=R less" git show "$@" -- tests/{highlighted,theme}
}

Expand Down

0 comments on commit f8bf10d

Please sign in to comment.