t / t2014-checkout-switch.shon commit Merge branch 'jk/sort-iter-test-output' (49541db)
   1#!/bin/sh
   2
   3test_description='Peter MacMillan'
   4. ./test-lib.sh
   5
   6test_expect_success setup '
   7        echo Hello >file &&
   8        git add file &&
   9        test_tick &&
  10        git commit -m V1 &&
  11        echo Hello world >file &&
  12        git add file &&
  13        git checkout -b other
  14'
  15
  16test_expect_success 'check all changes are staged' '
  17        git diff --exit-code
  18'
  19
  20test_expect_success 'second commit' '
  21        git commit -m V2
  22'
  23
  24test_expect_success 'check' '
  25        git diff --cached --exit-code
  26'
  27
  28test_done