git.pretty_commit() re-implemented with "git show" (bug #10018)
[stgit.git] / t / t2400-diff.sh
blob6d9ed98ecf4edf7524961e5f82b0143cd806dd48
1 #!/bin/sh
3 test_description='Run "stg diff"'
5 . ./test-lib.sh
7 test_expect_failure 'Diff with no StGit data' '
8 stg diff
11 test_expect_success 'Make some local changes' '
12 echo foo >> foo.txt &&
13 git add foo.txt
16 test_expect_failure 'Diff with some local changes' '
17 stg diff
20 test_expect_success 'Initialize StGit stuff' '
21 stg init &&
22 stg new foo -m foo
25 test_expect_success 'Diff with some local changes' '
26 stg diff
29 test_expect_success 'Refresh patch' '
30 stg refresh
33 test_expect_success 'Diff with no local changes' '
34 stg diff
37 test_done