Skip to content
Navigation Menu
Toggle navigation
Sign in
In this repository
All GitHub Enterprise
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub Enterprise
↵
Jump to
↵
In this organization
All GitHub Enterprise
↵
Jump to
↵
In this repository
All GitHub Enterprise
↵
Jump to
↵
Sign in
Reseting focus
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
You switched accounts on another tab or window.
Reload
to refresh your session.
Dismiss alert
{{ message }}
git-mirror
/
git
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
0
Security
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Files
77675e2
Documentation
debian
mozilla-sha1
ppc
t
templates
.gitignore
COPYING
INSTALL
Makefile
README
apply.c
blob.c
blob.h
build-rev-cache.c
cache.h
cat-file.c
checkout-index.c
clone-pack.c
cmd-rename.sh
commit-tree.c
commit.c
commit.h
connect.c
convert-objects.c
count-delta.c
count-delta.h
csum-file.c
csum-file.h
daemon.c
date.c
delta.h
diff-delta.c
diff-files.c
diff-helper.c
diff-index.c
diff-stages.c
diff-tree.c
diff.c
diff.h
diffcore-break.c
diffcore-order.c
diffcore-pathspec.c
diffcore-pickaxe.c
diffcore-rename.c
diffcore.h
entry.c
epoch.c
epoch.h
export.c
fetch-pack.c
fetch.c
fetch.h
fsck-objects.c
get-tar-commit-id.c
git-add.sh
git-applymbox.sh
git-applypatch.sh
git-archimport.perl
git-bisect.sh
git-branch.sh
git-checkout.sh
git-cherry.sh
git-clone.sh
git-commit.sh
git-core.spec.in
git-count-objects.sh
git-cvsimport.perl
git-diff.sh
git-external-diff-script
git-fetch.sh
git-format-patch.sh
git-log.sh
git-ls-remote.sh
git-merge-one-file.sh
git-octopus.sh
git-parse-remote.sh
git-prune.sh
git-pull.sh
git-push.sh
git-rebase.sh
git-relink.perl
git-rename.perl
git-repack.sh
git-request-pull.sh
git-reset.sh
git-resolve.sh
git-revert.sh
git-send-email.perl
git-sh-setup.sh
git-shortlog.perl
git-status.sh
git-tag.sh
git-verify-tag.sh
git-whatchanged.sh
git.sh
gitk
hash-object.c
http-fetch.c
ident.c
index.c
init-db.c
local-fetch.c
ls-files.c
ls-tree.c
mailinfo.c
mailsplit.c
merge-base.c
merge-index.c
mktag.c
object.c
object.h
pack-check.c
pack-objects.c
pack.h
patch-delta.c
patch-id.c
path.c
peek-remote.c
pkt-line.c
pkt-line.h
prune-packed.c
quote.c
quote.h
read-cache.c
read-tree.c
receive-pack.c
refs.c
refs.h
rev-cache.c
rev-cache.h
rev-list.c
rev-parse.c
rev-tree.c
rsh.c
rsh.h
run-command.c
run-command.h
send-pack.c
server-info.c
setup.c
sha1_file.c
sha1_name.c
show-branch.c
show-index.c
show-rev-cache.c
ssh-fetch.c
ssh-upload.c
strbuf.c
strbuf.h
stripspace.c
tag.c
tag.h
tar-tree.c
test-date.c
test-delta.c
tree.c
tree.h
unpack-file.c
unpack-objects.c
update-index.c
update-server-info.c
upload-pack.c
usage.c
var.c
verify-pack.c
write-tree.c
Breadcrumbs
git
/
tree.h
Blame
Blame
Latest commit
History
History
38 lines (29 loc) · 790 Bytes
Breadcrumbs
git
/
tree.h
Top
File metadata and controls
Code
Blame
38 lines (29 loc) · 790 Bytes
Raw
#ifndef TREE_H #define TREE_H #include "object.h" extern const char *tree_type; struct tree_entry_list { struct tree_entry_list *next; unsigned directory : 1; unsigned executable : 1; unsigned symlink : 1; unsigned zeropad : 1; unsigned int mode; char *name; union { struct object *any; struct tree *tree; struct blob *blob; } item; struct tree_entry_list *parent; }; struct tree { struct object object; struct tree_entry_list *entries; }; struct tree *lookup_tree(const unsigned char *sha1); int parse_tree_buffer(struct tree *item, void *buffer, unsigned long size); int parse_tree(struct tree *tree); /* Parses and returns the tree in the given ent, chasing tags and commits. */ struct tree *parse_tree_indirect(const unsigned char *sha1); #endif /* TREE_H */
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
You can’t perform that action at this time.