From: Catalin Marinas Date: Tue, 27 May 2008 22:18:22 +0000 (+0100) Subject: Merge branch 'stable' X-Git-Tag: v0.15-rc1~225 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/stgit/commitdiff_plain/78e5af69d99659769b052e4c00fe5b23a8356231?hp=--cc Merge branch 'stable' Conflicts: t/t2700-refresh.sh --- 78e5af69d99659769b052e4c00fe5b23a8356231 diff --cc t/t2700-refresh.sh index 3759d0e,ffac295..aad6d45 --- a/t/t2700-refresh.sh +++ b/t/t2700-refresh.sh @@@ -61,60 -59,12 +61,66 @@@ test_expect_success 'Refresh bottom pat stg status && test -z "$(stg status)" && stg patches foo1.txt > patches.txt && - diff -u expected.txt patches.txt + test_cmp expected.txt patches.txt +' + +cat > expected.txt < expected2.txt < expected3.txt <> foo1.txt && + git add foo1.txt && + echo blah 1 >> foo1.txt && + echo baz 2 >> foo2.txt && + stg refresh --index && + stg patches foo1.txt > patches.txt && + git diff HEAD^..HEAD > show.txt && + stg diff > diff.txt && + test_cmp expected.txt patches.txt && + test_cmp expected2.txt show.txt && + test_cmp expected3.txt diff.txt && + stg new p5 -m "cleanup again" && + stg refresh ' + + test_expect_success 'Refresh moved files' ' + git mv foo1.txt foo1-new.txt && + stg refresh + ' + test_done