chiark / gitweb /
git-debrebase: test suite: introduce t-gdr-good
[dgit.git] / tests / lib-gdr
index 4cfa62b0354d82f110be2f9384313bef547f5142..6d11009d8013ddf168d31a37a280d9f49fe76383 100644 (file)
@@ -12,13 +12,16 @@ t-git-debrebase () {
 '
 }
 
-t-gdr-branch-structure () {
+t-gdr-good () {
        local state=$1
+       local beforetag=$2 # say HEAD to skip this check
        # state should be one of
        #   laundered
        #   stitched
        #   patches
 
+       git diff ${beforetag-t.before} -- ':.' ':!debian/patches'
+
        local etype netype
 
        case $state in