mirror of
https://github.com/wfxr/forgit.git
synced 2026-09-10 15:26:16 -04:00
Some checks are pending
Pass the required color and stay-open flags directly to less so forgit no longer replaces users' LESS environment options. Add regression coverage and document the default behavior.
20 lines
414 B
Bash
20 lines
414 B
Bash
#!/usr/bin/env bash
|
|
|
|
function set_up_before_script() {
|
|
source bin/git-forgit
|
|
}
|
|
|
|
function less() {
|
|
printf 'LESS=%s\n' "$LESS"
|
|
printf 'ARGS=%s\n' "$*"
|
|
}
|
|
|
|
function test_enter_pager_preserves_less_and_disables_automatic_exit() {
|
|
local actual
|
|
|
|
actual=$(LESS="-F -E -X -S -N" _forgit_pager enter)
|
|
|
|
assert_contains "LESS=-F -E -X -S -N" "$actual"
|
|
assert_contains "ARGS=-R -+F -+E" "$actual"
|
|
}
|