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/t1418-reflog-exists.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 / t1418-reflog-exists.sh` 37 lines ยท 949 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='Test reflog display routines' 4 GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=main 5 export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME 6 7 . ./test-lib.sh 8 9 test_expect_success 'setup' ' 10 test_commit A 11 ' 12 13 test_expect_success 'usage' ' 14 test_expect_code 129 git reflog exists && 15 git reflog exists -h 16 ' 17 18 test_expect_success 'usage: unknown option' ' 19 test_expect_code 129 git reflog exists --unknown-option 20 ' 21 22 test_expect_success 'reflog exists works' ' 23 git reflog exists refs/heads/main && 24 test_must_fail git reflog exists refs/heads/nonexistent 25 ' 26 27 test_expect_success 'reflog exists works with a "--" delimiter' ' 28 git reflog exists -- refs/heads/main && 29 test_must_fail git reflog exists -- refs/heads/nonexistent 30 ' 31 32 test_expect_success 'reflog exists works with a "--end-of-options" delimiter' ' 33 git reflog exists --end-of-options refs/heads/main && 34 test_must_fail git reflog exists --end-of-options refs/heads/nonexistent 35 ' 36 37 test_done