Staging
v0.8.1
v0.8.1
Revision a0cf49c16ae37177dcfcefa1149bf09f84721cf5 authored by Timo Hirvonen on 06 February 2008, 12:16:08 UTC, committed by Junio C Hamano on 06 February 2008, 22:02:41 UTC
Numeric color only worked if it was at end of line. Noticed by Chris Larson <clarson@kergoth.com>. Signed-off-by: Timo Hirvonen <tihirvon@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent f1c3239
t1003-read-tree-prefix.sh
#!/bin/sh
#
# Copyright (c) 2006 Junio C Hamano
#
test_description='git read-tree --prefix test.
'
. ./test-lib.sh
test_expect_success setup '
echo hello >one &&
git update-index --add one &&
tree=`git write-tree` &&
echo tree is $tree
'
echo 'one
two/one' >expect
test_expect_success 'read-tree --prefix' '
git read-tree --prefix=two/ $tree &&
git ls-files >actual &&
cmp expect actual
'
test_done
Computing file changes ...