From bd91b9e1e9fdc8cd199d105118ce13f94e6b5fe5 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Fri, 17 Aug 2018 22:46:10 +1000 Subject: [PATCH] add test repo for all the kinds of files that show up when diffing --- test/repos/lots_of_diffs.sh | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 test/repos/lots_of_diffs.sh diff --git a/test/repos/lots_of_diffs.sh b/test/repos/lots_of_diffs.sh new file mode 100755 index 000000000..0cdec0cdc --- /dev/null +++ b/test/repos/lots_of_diffs.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -ex; rm -rf repo; mkdir repo; cd repo + +git init + +echo "deleted1" > deleted1 +echo "deleted2" > deleted2 +echo "modified1" > modified1 +echo "modified2" > modified2 +echo "renamed" > renamed1 + +git add . +git commit -m "files to delete" +rm deleted1 +rm deleted2 + +rm renamed1 +echo "renamed" > renamed2 +echo "more" >> modified1 +echo "more" >> modified2 +echo "untracked1" > untracked1 +echo "untracked2" > untracked2 +echo "blah" > "file with space1" +echo "blah" > "file with space2" +echo "same name as branch" > master + +git add deleted1 +git add modified1 +git add untracked1 +git add "file with space2" +git add renamed1 +git add renamed2 \ No newline at end of file