summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-03-23 11:03:01 -0700
committerRussell Belfer <arrbee@arrbee.com>2012-03-23 11:03:01 -0700
commitc8838ee92d85b3f027f8cabd87b98b682778cdbf (patch)
treea86e275fc20572afdfe16977b575a73efda8e95a /tests
parent4b136a94d948e62634633092c9d1052c4b074e6c (diff)
downloadlibgit2-c8838ee92d85b3f027f8cabd87b98b682778cdbf.tar.gz
Restore default status recursion behavior
This gives `git_status_foreach()` back its old behavior of emulating the "--untracked=all" behavior of git. You can get any of the various --untracked options by passing flags to `git_status_foreach_ext()` but the basic version will keep the behavior it has always had.
Diffstat (limited to 'tests')
-rw-r--r--tests/t18-status.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/t18-status.c b/tests/t18-status.c
index 8abff9872..bfd6906c1 100644
--- a/tests/t18-status.c
+++ b/tests/t18-status.c
@@ -261,7 +261,9 @@ static const char *entry_paths3[] = {
"42-is-not-prime.sigh",
"README.md",
"current_file",
- "current_file/",
+ "current_file/current_file",
+ "current_file/modified_file",
+ "current_file/new_file",
"file_deleted",
"ignored_file",
"modified_file",
@@ -286,6 +288,8 @@ static const unsigned int entry_statuses3[] = {
GIT_STATUS_WT_NEW,
GIT_STATUS_WT_DELETED,
GIT_STATUS_WT_NEW,
+ GIT_STATUS_WT_NEW,
+ GIT_STATUS_WT_NEW,
GIT_STATUS_WT_DELETED,
GIT_STATUS_IGNORED,
GIT_STATUS_WT_MODIFIED,
@@ -304,7 +308,7 @@ static const unsigned int entry_statuses3[] = {
GIT_STATUS_WT_DELETED,
};
-#define ENTRY_COUNT3 21
+#define ENTRY_COUNT3 23
BEGIN_TEST(statuscb3, "test retrieving status for a worktree where a file and a subdir have been renamed and some files have been added")
git_repository *repo;