chiark / gitweb /
git.pretty_commit() re-implemented with "git show" (bug #10018)
[stgit] / t / t2400-diff.sh
CommitLineData
67720228
KH
1#!/bin/sh
2
3test_description='Run "stg diff"'
4
5. ./test-lib.sh
6
7test_expect_failure 'Diff with no StGit data' '
8 stg diff
9'
10
11test_expect_success 'Make some local changes' '
12 echo foo >> foo.txt &&
13 git add foo.txt
14'
15
16test_expect_failure 'Diff with some local changes' '
17 stg diff
18'
19
20test_expect_success 'Initialize StGit stuff' '
21 stg init &&
22 stg new foo -m foo
23'
24
25test_expect_success 'Diff with some local changes' '
26 stg diff
27'
28
29test_expect_success 'Refresh patch' '
30 stg refresh
31'
32
33test_expect_success 'Diff with no local changes' '
34 stg diff
35'
36
37test_done