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/t7524-commit-summary.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 / t7524-commit-summary.sh` 32 lines ยท 667 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git commit summary' 4 5 . ./test-lib.sh 6 7 test_expect_success 'setup' ' 8 test_seq 101 200 >file && 9 git add file && 10 git commit -m initial && 11 git tag initial 12 ' 13 14 test_expect_success 'commit summary ignores rewrites' ' 15 git reset --hard initial && 16 test_seq 200 300 >file && 17 18 git diff --stat >diffstat && 19 git diff --stat --break-rewrites >diffstatrewrite && 20 21 # make sure this scenario is a detectable rewrite 22 ! test_cmp_bin diffstat diffstatrewrite && 23 24 git add file && 25 git commit -m second >actual && 26 27 grep "1 file" actual.total && 28 grep "1 file" diffstat.total && 29 test_cmp diffstat.total actual.total 30 ' 31 32 test_done