t / t6009-rev-list-parent.shon commit Teach "apply --index-info" to handle rename patches (18cdf80)
   1#!/bin/sh
   2
   3test_description='properly cull all ancestors'
   4
   5. ./test-lib.sh
   6
   7commit () {
   8        test_tick &&
   9        echo $1 >file &&
  10        git commit -a -m $1 &&
  11        git tag $1
  12}
  13
  14test_expect_success setup '
  15
  16        touch file &&
  17        git add file &&
  18
  19        commit one &&
  20
  21        test_tick=$(($test_tick - 2400))
  22
  23        commit two &&
  24        commit three &&
  25        commit four &&
  26
  27        git log --pretty=oneline --abbrev-commit
  28'
  29
  30test_expect_success 'one is ancestor of others and should not be shown' '
  31
  32        git rev-list one --not four >result &&
  33        >expect &&
  34        test_cmp expect result
  35
  36'
  37
  38test_done