Commit 855f2998 by Edward Thomson

blob: fix name of `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`

`GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD` is misspelled, it should be
`GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`, and it would be if it were not
for the MacBook Pro keyboard and my inattentiveness.
parent f0d7922c
...@@ -113,7 +113,7 @@ typedef enum { ...@@ -113,7 +113,7 @@ typedef enum {
* When set, filters will be loaded from a `.gitattributes` file * When set, filters will be loaded from a `.gitattributes` file
* in the HEAD commit. * in the HEAD commit.
*/ */
GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD = (1 << 2), GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD = (1 << 2),
} git_blob_filter_flag_t; } git_blob_filter_flag_t;
/** /**
......
...@@ -80,16 +80,19 @@ typedef git_attr_value_t git_attr_t; ...@@ -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 * These functions and enumeration values are retained for backward
* versions of these functions should be preferred in all new code. * 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 * There is no plan to remove these backward compatibility values at
* this time. * 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_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_fromdisk(git_oid *id, git_repository *repo, const char *path);
GIT_EXTERN(int) git_blob_create_fromstream( GIT_EXTERN(int) git_blob_create_fromstream(
......
...@@ -439,7 +439,7 @@ int git_blob_filter( ...@@ -439,7 +439,7 @@ int git_blob_filter(
if ((opts.flags & GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES) != 0) if ((opts.flags & GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES) != 0)
flags |= GIT_FILTER_NO_SYSTEM_ATTRIBUTES; flags |= GIT_FILTER_NO_SYSTEM_ATTRIBUTES;
if ((opts.flags & GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD) != 0) if ((opts.flags & GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD) != 0)
flags |= GIT_FILTER_ATTRIBUTES_FROM_HEAD; flags |= GIT_FILTER_ATTRIBUTES_FROM_HEAD;
if (!(error = git_filter_list_load( if (!(error = git_filter_list_load(
......
...@@ -10,7 +10,7 @@ void test_filter_bare__initialize(void) ...@@ -10,7 +10,7 @@ void test_filter_bare__initialize(void)
cl_git_pass(git_repository_open(&g_repo, "crlf.git")); 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_NO_SYSTEM_ATTRIBUTES;
filter_opts.flags |= GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD; filter_opts.flags |= GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD;
} }
void test_filter_bare__cleanup(void) void test_filter_bare__cleanup(void)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment