Skip to content

Commit c31032a

Browse files
authored
Merge pull request libgit2#5760 from libgit2/ethomson/tttoo_many_ttts
blob: fix name of `GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD`
2 parents 27e34f9 + 855f299 commit c31032a

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

include/git2/blob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
/**

include/git2/deprecated.h

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff 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+
9396
GIT_EXTERN(int) git_blob_create_fromworkdir(git_oid *id, git_repository *repo, const char *relative_path);
9497
GIT_EXTERN(int) git_blob_create_fromdisk(git_oid *id, git_repository *repo, const char *path);
9598
GIT_EXTERN(int) git_blob_create_fromstream(

src/blob.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ int git_blob_filter(
448448
if ((opts.flags & GIT_BLOB_FILTER_NO_SYSTEM_ATTRIBUTES) != 0)
449449
flags |= GIT_FILTER_NO_SYSTEM_ATTRIBUTES;
450450

451-
if ((opts.flags & GIT_BLOB_FILTER_ATTTRIBUTES_FROM_HEAD) != 0)
451+
if ((opts.flags & GIT_BLOB_FILTER_ATTRIBUTES_FROM_HEAD) != 0)
452452
flags |= GIT_FILTER_ATTRIBUTES_FROM_HEAD;
453453

454454
if (!(error = git_filter_list_load(

tests/filter/bare.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

1616
void test_filter_bare__cleanup(void)

0 commit comments

Comments
 (0)