]> git.ipfire.org Git - thirdparty/git.git/blobdiff - t/test-lib-functions.sh
Merge branch 'ns/batch-fsync'
[thirdparty/git.git] / t / test-lib-functions.sh
index 93c03380d449668fb81927e4ce17dda645bd0715..50970d3e03eb8a2f8eb48224bf7ce288a83af0fe 100644 (file)
@@ -1782,6 +1782,16 @@ test_oid_to_path () {
        echo "${1%$basename}/$basename"
 }
 
+# Parse oids from git ls-files --staged output
+test_parse_ls_files_stage_oids () {
+       awk '{print $2}' -
+}
+
+# Parse oids from git ls-tree output
+test_parse_ls_tree_oids () {
+       awk '{print $3}' -
+}
+
 # Choose a port number based on the test script's number and store it in
 # the given variable name, unless that variable already contains a number.
 test_set_port () {