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/t6014-rev-list-all.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 / t6014-rev-list-all.sh` 42 lines ยท 617 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='--all includes detached HEADs' 4 5 . ./test-lib.sh 6 7 8 commit () { 9 test_tick && 10 echo $1 > foo && 11 git add foo && 12 git commit -m "$1" 13 } 14 15 test_expect_success 'setup' ' 16 17 commit one && 18 commit two && 19 git checkout HEAD^ && 20 commit detached 21 22 ' 23 24 test_expect_success 'rev-list --all lists detached HEAD' ' 25 26 test 3 = $(git rev-list --all | wc -l) 27 28 ' 29 30 test_expect_success 'repack does not lose detached HEAD' ' 31 32 git gc && 33 git prune --expire=now && 34 git show HEAD 35 36 ' 37 38 test_expect_success 'rev-list --graph --no-walk is forbidden' ' 39 test_must_fail git rev-list --graph --no-walk HEAD 40 ' 41 42 test_done