Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
7b7aa75f
Commit
7b7aa75f
authored
Sep 24, 2014
by
Jacques Germishuys
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Recurse ignored directories when stashing
parent
940da548
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/stash.c
+4
-2
No files found.
src/stash.c
View file @
7b7aa75f
...
...
@@ -232,7 +232,8 @@ static int build_untracked_tree(
}
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
;
}
...
...
@@ -450,7 +451,8 @@ static int ensure_there_are_changes_to_stash(
GIT_STATUS_OPT_RECURSE_UNTRACKED_DIRS
;
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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment