File tree Expand file tree Collapse file tree 4 files changed +9
-6
lines changed
Expand file tree Collapse file tree 4 files changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,7 @@ typedef enum {
113113 * When set, filters will be loaded from a `.gitattributes` file
114114 * in the HEAD commit.
115115 */
116- GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD = (1 << 2 ),
116+ GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD = (1 << 2 ),
117117} git_blob_filter_flag_t ;
118118
119119/**
Original file line number Diff line number Diff line change @@ -80,16 +80,19 @@ typedef git_attr_value_t git_attr_t;
8080
8181/**@}*/
8282
83- /** @name Deprecated Blob Functions
83+ /** @name Deprecated Blob Functions and Constants
8484 *
85- * These functions are retained for backward compatibility. The newer
86- * versions of these functions should be preferred in all new code.
85+ * These functions and enumeration values are retained for backward
86+ * compatibility. The newer versions of these functions and values
87+ * should be preferred in all new code.
8788 *
8889 * There is no plan to remove these backward compatibility values at
8990 * this time.
9091 */
9192/**@{*/
9293
94+ #define GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD
95+
9396GIT_EXTERN (int ) git_blob_create_fromworkdir (git_oid * id , git_repository * repo , const char * relative_path );
9497GIT_EXTERN (int ) git_blob_create_fromdisk (git_oid * id , git_repository * repo , const char * path );
9598GIT_EXTERN (int ) git_blob_create_fromstream (
Original file line number Diff line number Diff line change @@ -439,7 +439,7 @@ int git_blob_filter(
439439 if ((opts .flags & GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES ) != 0 )
440440 flags |= GIT_FILTER_NO_SYSTEM_ATTRIBUTES ;
441441
442- if ((opts .flags & GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD ) != 0 )
442+ if ((opts .flags & GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD ) != 0 )
443443 flags |= GIT_FILTER_ATTRIBUTES_FROM_HEAD ;
444444
445445 if (!(error = git_filter_list_load (
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ void test_filter_bare__initialize(void)
1010 cl_git_pass (git_repository_open (& g_repo , "crlf.git" ));
1111
1212 filter_opts .flags |= GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES ;
13- filter_opts .flags |= GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD ;
13+ filter_opts .flags |= GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD ;
1414}
1515
1616void test_filter_bare__cleanup (void )
You can’t perform that action at this time.
0 commit comments