mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-07 12:57:05 +00:00
Recurse ignored directories when stashing
This commit is contained in:
parent
940da54861
commit
7b7aa75f80
@ -232,7 +232,8 @@ static int build_untracked_tree(
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (flags & GIT_STASH_INCLUDE_IGNORED) {
|
if (flags & GIT_STASH_INCLUDE_IGNORED) {
|
||||||
opts.flags |= GIT_DIFF_INCLUDE_IGNORED;
|
opts.flags |= GIT_DIFF_INCLUDE_IGNORED |
|
||||||
|
GIT_DIFF_RECURSE_IGNORED_DIRS;
|
||||||
data.include_ignored = true;
|
data.include_ignored = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -447,10 +448,11 @@ static int ensure_there_are_changes_to_stash(
|
|||||||
|
|
||||||
if (include_untracked_files)
|
if (include_untracked_files)
|
||||||
opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED |
|
opts.flags |= GIT_STATUS_OPT_INCLUDE_UNTRACKED |
|
||||||
GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS;
|
GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS;
|
||||||
|
|
||||||
if (include_ignored_files)
|
if (include_ignored_files)
|
||||||
opts.flags |= GIT_STATUS_OPT_INCLUDE_IGNORED;
|
opts.flags |= GIT_STATUS_OPT_INCLUDE_IGNORED |
|
||||||
|
GIT_STATUS_OPT_RECURSE_IGNORED_DIRS;
|
||||||
|
|
||||||
error = git_status_foreach_ext(repo, &opts, is_dirty_cb, NULL);
|
error = git_status_foreach_ext(repo, &opts, is_dirty_cb, NULL);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user