Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
t-git-config core.eol crlf
t-git-config core.eol crlf
+printf >>.dotfile-attr 'dotfiles too?\n'
+echo >>gitattrs '.dotfile-attr filter=dgit-test-crazy-f'
+
badattr text auto
badattr eol lf crlf
badattr ident
badattr text auto
badattr eol lf crlf
badattr ident
+sha256sum .dotfile-attr af/* >sums
# ----- common to source formats -----
# ----- common to source formats -----
cp ../gitattrs .gitattributes
$addpatch gitattrs
cp ../gitattrs .gitattributes
$addpatch gitattrs
+ cp -a ../af ../.dotfile-attr .
$addpatch files
cp ../sums .
$addpatch files
cp ../sums .
# $sums $branch
# and check out $branch
# $sums $branch
# and check out $branch
- sha256sum af/* >../$sums.checkout
+ sha256sum .dotfile-attr af/* >../$sums.checkout
diff -U0 ../sums ../$sums.checkout
diff -U0 ../sums ../$sums.checkout
+ for f in .dotfile-attr af/*; do
git cat-file blob "refs/heads/$branch:$f" \
| sha256sum \
| sed -e 's#-$#'$f'#' \
git cat-file blob "refs/heads/$branch:$f" \
| sha256sum \
| sed -e 's#-$#'$f'#' \
# $sums
# and check out the broken branch
# $sums
# and check out the broken branch
- sha256sum af/* >../$sums.broken
+ sha256sum .dotfile-attr af/* >../$sums.broken
for s in ../sums ../$sums.broken; do
sed 's/[0-9a-f]* //' $s >$s.nosums
for s in ../sums ../$sums.broken; do
sed 's/[0-9a-f]* //' $s >$s.nosums
t-dgit-warn-check 1 $dgitargs import-dsc ../$dscf +$branch
git checkout $branch
t-dgit-warn-check 1 $dgitargs import-dsc ../$dscf +$branch
git checkout $branch
+ touch .dotfile-attr af/*
git reset --hard
sums_check
git reset --hard
sums_check