1#!/bin/sh
   2test_description='properly cull all ancestors'
   4. ./test-lib.sh
   6commit () {
   8        test_tick &&
   9        echo $1 >file &&
  10        git commit -a -m $1 &&
  11        git tag $1
  12}
  13test_expect_success setup '
  15        touch file &&
  17        git add file &&
  18        commit one &&
  20        test_tick=$(($test_tick - 2400))
  22        commit two &&
  24        commit three &&
  25        commit four &&
  26        git log --pretty=oneline --abbrev-commit
  28'
  29test_expect_success 'one is ancestor of others and should not be shown' '
  31        git rev-list one --not four >result &&
  33        >expect &&
  34        test_cmp expect result
  35'
  37test_done