summaryrefslogtreecommitdiff
path: root/sha1_file.c
diff options
context:
space:
mode:
authorAlex Riesen <raa.lkml@gmail.com>2007-04-18 23:55:45 (GMT)
committerJunio C Hamano <junkio@cox.net>2007-04-19 00:08:42 (GMT)
commit1c3e5c4ebc326c5c70350d3f4dc7f2b29e813480 (patch)
treeaca638277f9678f6d89936c6c62a44623b024b86 /sha1_file.c
parent04786756f90a734445cc300a5acf9fcfc9fd4c04 (diff)
downloadgit-1c3e5c4ebc326c5c70350d3f4dc7f2b29e813480.zip
git-1c3e5c4ebc326c5c70350d3f4dc7f2b29e813480.tar.gz
git-1c3e5c4ebc326c5c70350d3f4dc7f2b29e813480.tar.bz2
Tests for core subproject support
The following tests available: - create subprojects: create a directory in the superproject, initialize a git repo in it, and try adding it in super project. Make a commit in superproject - check if fsck ignores the subprojects: it just should give no errors - check if commit in a subproject detected: make a commit in subproject, git-diff-files in superproject should detect it - check if a changed subproject HEAD can be committed: try "git-commit -a" in superproject. It should commit changed HEAD of a subproject - check if diff-index works for subproject elements: compare the index (changed by previuos tests) with the initial commit (which created two subprojects). Should show a change for the recently changed subproject - check if diff-tree works for subproject elements: do the same, just use git-diff-tree. This test is somewhat redundant, I just added it for completeness (diff, diff-files, and diff-index are already used) - check if git diff works for subproject elements: try to limit the diff for the name of a subproject in superproject: git diff HEAD^ HEAD -- subproject - check if clone works: try a clone of superproject and compare "git ls-files -s" output in superproject and cloned repo - removing and adding subproject: rename test. Currently implemented as "git-update-index --force-remove", "mv" and "git-add". - checkout in superproject: try to checkout the initial commit Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'sha1_file.c')
0 files changed, 0 insertions, 0 deletions