chiark / gitweb /
stgit.el: Add "d" for a few diff commands, similar to git.el
[stgit] / t / t1701-goto-hidden.sh
CommitLineData
cb1570e1
KH
1#!/bin/sh
2
3test_description='Test "stg goto" with hidden patches'
4
5. ./test-lib.sh
6
7test_expect_success 'Initialize StGit stack' '
8 stg init &&
9 echo foo > foo.txt &&
10 git add foo.txt &&
11 stg new -m hidden-patch &&
12 stg refresh &&
13 stg pop &&
14 stg hide hidden-patch &&
15 test "$(echo $(stg series --all))" = "! hidden-patch"
16'
17
18test_expect_success 'Refuse to go to a hidden patch' '
19 command_error stg goto hidden-patch &&
20 test "$(echo $(stg series --all))" = "! hidden-patch"
21'
22
23test_done