Include summary of added/deleted files in diffstat
[stgit/ydirson.git] / t / t1003-new.sh
blob0be5d9b21f6f9b4f2684f16544ee8b969a849a0e
1 #!/bin/sh
3 # Copyright (c) 2007 Karl Hasselström
6 test_description='Test the new command.
10 . ./test-lib.sh
12 test_expect_success \
13 'Initialize the StGIT repository' '
14 stg init
17 test_expect_success \
18 'Create a named patch' '
19 stg new foo -m foobar &&
20 [ $(stg applied -c) -eq 1 ]
23 test_expect_success \
24 'Create a patch without giving a name' '
25 stg new -m yo &&
26 [ $(stg applied -c) -eq 2 ]
29 test_done