Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/attr.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2023-01-24 00:39:50 +0300
committerJunio C Hamano <gitster@pobox.com>2023-01-24 00:39:51 +0300
commit577bff3a81079ebaf278eb98e10453f65678c135 (patch)
treebbe1b3145d33b4b282ddef7445646812d226e373 /attr.h
parent8a40af9cabe2efbb830bf90c864ffda3136926ba (diff)
parent47cfc9bd7d0add617cf6d928e96b7d207be614f1 (diff)
Merge branch 'kn/attr-from-tree'
"git check-attr" learned to take an optional tree-ish to read the .gitattributes file from. * kn/attr-from-tree: attr: add flag `--source` to work with tree-ish t0003: move setup for `--all` into new block
Diffstat (limited to 'attr.h')
-rw-r--r--attr.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/attr.h b/attr.h
index 2f22dffadb..58a2bc1344 100644
--- a/attr.h
+++ b/attr.h
@@ -120,6 +120,7 @@
#define ATTR_MAX_FILE_SIZE (100 * 1024 * 1024)
struct index_state;
+struct object_id;
/**
* An attribute is an opaque object that is identified by its name. Pass the
@@ -202,13 +203,14 @@ void attr_check_free(struct attr_check *check);
const char *git_attr_name(const struct git_attr *);
void git_check_attr(struct index_state *istate,
- const char *path, struct attr_check *check);
+ const struct object_id *tree_oid, const char *path,
+ struct attr_check *check);
/*
* Retrieve all attributes that apply to the specified path.
* check holds the attributes and their values.
*/
-void git_all_attrs(struct index_state *istate,
+void git_all_attrs(struct index_state *istate, const struct object_id *tree_oid,
const char *path, struct attr_check *check);
enum git_attr_direction {