Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/lib-log-graph.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / lib-log-graph.sh` 33 lines ยท 980 bytes Raw Blame History 1 # Helps shared by the test scripts for comparing log graphs. 2 3 sanitize_log_output () { 4 sed -e 's/ *$//' \ 5 -e 's/commit [0-9a-f]*$/commit COMMIT_OBJECT_NAME/' \ 6 -e 's/Merge: [ 0-9a-f]*$/Merge: MERGE_PARENTS/' \ 7 -e 's/Merge tag.*/Merge HEADS DESCRIPTION/' \ 8 -e 's/Merge commit.*/Merge HEADS DESCRIPTION/' \ 9 -e 's/index [0-9a-f]*\.\.[0-9a-f]*/index BEFORE..AFTER/' 10 } 11 12 lib_test_cmp_graph () { 13 git log --graph "$@" >output && 14 sed 's/ *$//' >output.sanitized output && 20 sanitize_log_output >output.sanitized output.colors.raw && 26 test_decode_color output.colors && 27 test_cmp expect.colors output.colors 28 } 29 30 lib_test_check_graph () { 31 cat >expect && 32 lib_test_cmp_graph --format=%s "$@" 33 }