chiark / gitweb /
Allow the synchronisation of the unapplied patches
[stgit] / t / t2400-diff.sh
CommitLineData
67720228
KH
1#!/bin/sh
2
3test_description='Run "stg diff"'
4
5. ./test-lib.sh
6
d679e110 7test_expect_success 'Diff with no StGit data' '
67720228
KH
8 stg diff
9'
10
11test_expect_success 'Make some local changes' '
12 echo foo >> foo.txt &&
13 git add foo.txt
14'
15
d679e110 16test_expect_success 'Diff with some local changes' '
67720228
KH
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