diff options
author | Taylor Blau <me@ttaylorr.com> | 2022-10-31 01:04:43 (GMT) |
---|---|---|
committer | Taylor Blau <me@ttaylorr.com> | 2022-10-31 01:04:44 (GMT) |
commit | d32dd8add53120cef9b30be4240010c2ab6bfc6f (patch) | |
tree | 19666d93be82cedcdce364d59ca81dacd68ea84c /t/test-lib-functions.sh | |
parent | bf0d9d0d347ddee86d4e848c70584666d384f026 (diff) | |
parent | 8628a842bddda7723ad7548b7f6d141123a164a0 (diff) | |
download | git-d32dd8add53120cef9b30be4240010c2ab6bfc6f.zip git-d32dd8add53120cef9b30be4240010c2ab6bfc6f.tar.gz git-d32dd8add53120cef9b30be4240010c2ab6bfc6f.tar.bz2 |
Merge branch 'ds/bundle-uri-3'
Define the logical elements of a "bundle list", data structure to
store them in-core, format to transfer them, and code to parse
them.
* ds/bundle-uri-3:
bundle-uri: suppress stderr from remote-https
bundle-uri: quiet failed unbundlings
bundle: add flags to verify_bundle()
bundle-uri: fetch a list of bundles
bundle: properly clear all revision flags
bundle-uri: limit recursion depth for bundle lists
bundle-uri: parse bundle list in config format
bundle-uri: unit test "key=value" parsing
bundle-uri: create "key=value" line parsing
bundle-uri: create base key-value pair parsing
bundle-uri: create bundle_list struct and helpers
bundle-uri: use plain string in find_temp_filename()
Diffstat (limited to 't/test-lib-functions.sh')
-rw-r--r-- | t/test-lib-functions.sh | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index adc0fb6..29d914a 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -1868,3 +1868,14 @@ test_is_magic_mtime () { rm -f .git/test-mtime-actual return $ret } + +# Given two filenames, parse both using 'git config --list --file' +# and compare the sorted output of those commands. Useful when +# wanting to ignore whitespace differences and sorting concerns. +test_cmp_config_output () { + git config --list --file="$1" >config-expect && + git config --list --file="$2" >config-actual && + sort config-expect >sorted-expect && + sort config-actual >sorted-actual && + test_cmp sorted-expect sorted-actual +} |