Correct name of diff_flush() in API documentation
[git/platforms/storm.git] / t / t6008-rev-list-submodule.sh
blob88e96fb91b9fd54ddc6bd43de4996c1e70404a6f
1 #!/bin/sh
3 # Copyright (c) 2007 Johannes E. Schindelin
6 test_description='git rev-list involving submodules that this repo has'
8 . ./test-lib.sh
10 test_expect_success 'setup' '
11 : > file &&
12 git add file &&
13 test_tick &&
14 git commit -m initial &&
15 echo 1 > file &&
16 test_tick &&
17 git commit -m second file &&
18 echo 2 > file &&
19 test_tick &&
20 git commit -m third file &&
22 rm .git/index &&
24 : > super-file &&
25 git add super-file &&
26 git submodule add . sub &&
27 git symbolic-ref HEAD refs/heads/super &&
28 test_tick &&
29 git commit -m super-initial &&
30 echo 1 > super-file &&
31 test_tick &&
32 git commit -m super-first super-file &&
33 echo 2 > super-file &&
34 test_tick &&
35 git commit -m super-second super-file
38 test_expect_success "Ilari's test" '
39 git rev-list --objects super master ^super^
42 test_done