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
c31032a3
Unverified
Commit
c31032a3
authored
Jan 07, 2021
by
Edward Thomson
Committed by
GitHub
Jan 07, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5760 from libgit2/ethomson/tttoo_many_ttts
blob: fix name of `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`
parents
27e34f9b
855f2998
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
6 deletions
+9
-6
include/git2/blob.h
+1
-1
include/git2/deprecated.h
+6
-3
src/blob.c
+1
-1
tests/filter/bare.c
+1
-1
No files found.
include/git2/blob.h
View file @
c31032a3
...
...
@@ -113,7 +113,7 @@ typedef enum {
* When set, filters will be loaded from a `.gitattributes` file
* in the HEAD commit.
*/
GIT_BLOB_FILTER_ATT
T
RIBUTES_FROM_HEAD
=
(
1
<<
2
),
GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD
=
(
1
<<
2
),
}
git_blob_filter_flag_t
;
/**
...
...
include/git2/deprecated.h
View file @
c31032a3
...
...
@@ -80,16 +80,19 @@ typedef git_attr_value_t git_attr_t;
/**@}*/
/** @name Deprecated Blob Functions
/** @name Deprecated Blob Functions
and Constants
*
* These functions are retained for backward compatibility. The newer
* versions of these functions should be preferred in all new code.
* These functions and enumeration values are retained for backward
* compatibility. The newer versions of these functions and values
* should be preferred in all new code.
*
* There is no plan to remove these backward compatibility values at
* this time.
*/
/**@{*/
#define GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD
GIT_EXTERN
(
int
)
git_blob_create_fromworkdir
(
git_oid
*
id
,
git_repository
*
repo
,
const
char
*
relative_path
);
GIT_EXTERN
(
int
)
git_blob_create_fromdisk
(
git_oid
*
id
,
git_repository
*
repo
,
const
char
*
path
);
GIT_EXTERN
(
int
)
git_blob_create_fromstream
(
...
...
src/blob.c
View file @
c31032a3
...
...
@@ -448,7 +448,7 @@ int git_blob_filter(
if
((
opts
.
flags
&
GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES
)
!=
0
)
flags
|=
GIT_FILTER_NO_SYSTEM_ATTRIBUTES
;
if
((
opts
.
flags
&
GIT_BLOB_FILTER_ATT
T
RIBUTES_FROM_HEAD
)
!=
0
)
if
((
opts
.
flags
&
GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD
)
!=
0
)
flags
|=
GIT_FILTER_ATTRIBUTES_FROM_HEAD
;
if
(
!
(
error
=
git_filter_list_load
(
...
...
tests/filter/bare.c
View file @
c31032a3
...
...
@@ -10,7 +10,7 @@ void test_filter_bare__initialize(void)
cl_git_pass
(
git_repository_open
(
&
g_repo
,
"crlf.git"
));
filter_opts
.
flags
|=
GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES
;
filter_opts
.
flags
|=
GIT_BLOB_FILTER_ATT
T
RIBUTES_FROM_HEAD
;
filter_opts
.
flags
|=
GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD
;
}
void
test_filter_bare__cleanup
(
void
)
...
...
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