CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Fri, 08 Aug 2025 20:36:34 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20250426160737
location: https://web.archive.org/web/20250426160737/https://github.com/git/git/tree/master/decorate.h
server-timing: captures_list;dur=0.458661, exclusion.robots;dur=0.017572, exclusion.robots.policy;dur=0.008749, esindex;dur=0.009796, cdx.remote;dur=47.458353, LoadShardBlock;dur=207.447553, PetaboxLoader3.datanode;dur=94.675912, PetaboxLoader3.resolve;dur=110.230787
x-app-server: wwwb-app223
x-ts: 302
x-tr: 284
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app223; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 301
server: nginx
date: Fri, 08 Aug 2025 20:36:35 GMT
content-type: text/html; charset=utf-8
content-length: 0
x-archive-orig-date: Sat, 26 Apr 2025 16:07:37 GMT
x-archive-orig-content-length: 0
x-archive-orig-vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame,Accept-Encoding, Accept, X-Requested-With
location: https://web.archive.org/web/20250426160737/https://github.com/git/git/blob/master/decorate.h
x-archive-orig-cache-control: no-cache
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 0
x-archive-orig-referrer-policy: no-referrer-when-downgrade
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
x-archive-orig-server: github.com
x-archive-orig-set-cookie: _gh_sess=9jjO2kWZzfvkfCYZr1iD3BIzLn5cL5OGTYHix4lJ3N%2B%2BZ3Hrky%2B2WzpkzHOIAR%2FY9divRYnvQ5nOY6wggWC374h6FsbWITYz5luyuoKqRARK4n484%2FnfSb28fqbUZjmMAXbr%2FliYj6SCmwOELjpgAMZYGUvyDjlImy4d7oQFSeOGIKizPeYciJKSAQ1JjOCpkG2fwLsrb06SpZliAo56wz7lUe%2B1Fomn0%2BK5eHJSDTBll7lnqKzfzoNDzxojM%2Fk%2BATanV9FJgC%2FuM3%2BTRb135w%3D%3D--%2BoB8XQALKWcOxHkY--yf7F%2FBn5entNG5dz5oU0Tg%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
x-archive-orig-set-cookie: _octo=GH1.1.560600295.1745683657; Path=/; Domain=github.com; Expires=Sun, 26 Apr 2026 16:07:37 GMT; Secure; SameSite=Lax
x-archive-orig-set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Sun, 26 Apr 2026 16:07:37 GMT; HttpOnly; Secure; SameSite=Lax
x-archive-orig-x-github-request-id: C546:10A8FE:585EB68:5C3479C:680D04C9
x-archive-orig-connection: close
cache-control: max-age=1800
memento-datetime: Sat, 26 Apr 2025 16:07:37 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Sat, 26 Apr 2025 16:07:37 GMT", ; rel="memento"; datetime="Sat, 26 Apr 2025 16:07:37 GMT", ; rel="last memento"; datetime="Sat, 26 Apr 2025 16:07:37 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: SPNOUTLINKS-20250426160417-crawl919/SPNOUTLINKS-20250426160708-00062.warc.gz
server-timing: captures_list;dur=0.585968, exclusion.robots;dur=0.021873, exclusion.robots.policy;dur=0.011381, esindex;dur=0.012523, cdx.remote;dur=32.684557, LoadShardBlock;dur=877.415745, PetaboxLoader3.datanode;dur=826.026907, PetaboxLoader3.resolve;dur=190.382002, load_resource;dur=240.132192
x-app-server: wwwb-app223
x-ts: 301
x-tr: 1180
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 302
server: nginx
date: Fri, 08 Aug 2025 20:36:36 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20250427151652
location: https://web.archive.org/web/20250427151652/https://github.com/git/git/blob/master/decorate.h
server-timing: captures_list;dur=0.571683, exclusion.robots;dur=0.025149, exclusion.robots.policy;dur=0.012506, esindex;dur=0.011919, cdx.remote;dur=60.909720, LoadShardBlock;dur=215.242332, PetaboxLoader3.datanode;dur=89.425091, PetaboxLoader3.resolve;dur=68.439253
x-app-server: wwwb-app223
x-ts: 302
x-tr: 303
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Fri, 08 Aug 2025 20:36:37 GMT
content-type: text/html; charset=utf-8
x-archive-orig-date: Sun, 27 Apr 2025 15:16:53 GMT
x-archive-orig-vary: X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame,Accept-Encoding, Accept, X-Requested-With
x-archive-orig-etag: W/"2c408b2ffa4d85f87b1e47a62919cc71"
x-archive-orig-cache-control: max-age=0, private, must-revalidate
x-archive-orig-strict-transport-security: max-age=31536000; includeSubdomains; preload
x-archive-orig-x-frame-options: deny
x-archive-orig-x-content-type-options: nosniff
x-archive-orig-x-xss-protection: 0
x-archive-orig-referrer-policy: no-referrer-when-downgrade
x-archive-orig-content-security-policy: default-src 'none'; base-uri 'self'; child-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com *.rel.tunnels.api.visualstudio.com wss://*.rel.tunnels.api.visualstudio.com objects-origin.githubusercontent.com copilot-proxy.githubusercontent.com proxy.individual.githubcopilot.com proxy.business.githubcopilot.com proxy.enterprise.githubcopilot.com *.actions.githubusercontent.com wss://*.actions.githubusercontent.com productionresultssa0.blob.core.windows.net/ productionresultssa1.blob.core.windows.net/ productionresultssa2.blob.core.windows.net/ productionresultssa3.blob.core.windows.net/ productionresultssa4.blob.core.windows.net/ productionresultssa5.blob.core.windows.net/ productionresultssa6.blob.core.windows.net/ productionresultssa7.blob.core.windows.net/ productionresultssa8.blob.core.windows.net/ productionresultssa9.blob.core.windows.net/ productionresultssa10.blob.core.windows.net/ productionresultssa11.blob.core.windows.net/ productionresultssa12.blob.core.windows.net/ productionresultssa13.blob.core.windows.net/ productionresultssa14.blob.core.windows.net/ productionresultssa15.blob.core.windows.net/ productionresultssa16.blob.core.windows.net/ productionresultssa17.blob.core.windows.net/ productionresultssa18.blob.core.windows.net/ productionresultssa19.blob.core.windows.net/ github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com api.githubcopilot.com api.individual.githubcopilot.com api.business.githubcopilot.com api.enterprise.githubcopilot.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com copilot-workspace.githubnext.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: blob: github.githubassets.com media.githubusercontent.com camo.githubusercontent.com identicons.github.com avatars.githubusercontent.com private-avatars.githubusercontent.com github-cloud.s3.amazonaws.com objects.githubusercontent.com release-assets.githubusercontent.com secured-user-images.githubusercontent.com/ user-images.githubusercontent.com/ private-user-images.githubusercontent.com opengraph.githubassets.com copilotprodattachments.blob.core.windows.net/github-production-copilot-attachments/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com objects-origin.githubusercontent.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/ private-user-images.githubusercontent.com github-production-user-asset-6210df.s3.amazonaws.com gist.github.com; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; upgrade-insecure-requests; worker-src github.githubassets.com github.com/assets-cdn/worker/ github.com/assets/ gist.github.com/assets-cdn/worker/
x-archive-orig-server: github.com
x-archive-orig-accept-ranges: bytes
x-archive-orig-set-cookie: _gh_sess=fYN834lhk3guVxljrzQ7Rdg3DKpPNzd3EVO5sFgDyMzlnwJB%2BB5HKU%2BSAvoFoGuPNG%2F5Yv4hCC5cQBhxzgbK4NSyVFQ2YysSo67BpzQ0IE5CV0qb7a73ZmVf64Wtr2%2BlB1gRiHcK6csM8UbMkcXKya0lD%2BV2u%2FUrAOkgV8ZilS8e8w4WxKDo6m%2BomtxVCpKoYamc6etk2NWYg8J3YJd%2B8AWe4wc3yJ1wJyOfr6%2BLnxLe4xoJ3xyEGcE03LsNdaE3Elx2%2BWznJwsIJcy26oUxCA%3D%3D--D2zxaPX3IcKXI6eT--sKwG7CK6PmBvLBD6Z%2BHbcQ%3D%3D; Path=/; HttpOnly; Secure; SameSite=Lax
x-archive-orig-set-cookie: _octo=GH1.1.604001414.1745767012; Path=/; Domain=github.com; Expires=Mon, 27 Apr 2026 15:16:52 GMT; Secure; SameSite=Lax
x-archive-orig-set-cookie: logged_in=no; Path=/; Domain=github.com; Expires=Mon, 27 Apr 2026 15:16:52 GMT; HttpOnly; Secure; SameSite=Lax
x-archive-orig-x-github-request-id: C7B2:1276:70566D0:75C59D2:680E4A64
x-archive-orig-connection: close
x-archive-orig-transfer-encoding: chunked
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
x-archive-orig-content-encoding: gzip
memento-datetime: Sun, 27 Apr 2025 15:16:52 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Tue, 25 Jul 2017 18:50:44 GMT", ; rel="prev memento"; datetime="Wed, 26 Feb 2025 16:47:43 GMT", ; rel="memento"; datetime="Sun, 27 Apr 2025 15:16:52 GMT", ; rel="last memento"; datetime="Sun, 27 Apr 2025 15:16:52 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: SPNOUTLINKS-20250427151229-crawl919/SPNOUTLINKS-20250427151527-00067.warc.gz
server-timing: captures_list;dur=0.683559, exclusion.robots;dur=0.030234, exclusion.robots.policy;dur=0.016036, esindex;dur=0.020292, cdx.remote;dur=34.737132, LoadShardBlock;dur=140.593542, PetaboxLoader3.datanode;dur=177.242722, load_resource;dur=156.202164, PetaboxLoader3.resolve;dur=82.620701
x-app-server: wwwb-app223
x-ts: 200
x-tr: 477
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
git/decorate.h at master · git/git · GitHub
{{ message }}
-
Notifications
You must be signed in to change notification settings - Fork 26.2k
/
Copy pathdecorate.h
71 lines (61 loc) · 1.7 KB
/
decorate.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#ifndef DECORATE_H
#define DECORATE_H
/*
* A data structure that associates Git objects to void pointers. See
* t/unit-tests/t-example-decorate.c for a demonstration of how to use these
* functions.
*/
/*
* An entry in the data structure.
*/
struct decoration_entry {
const struct object *base;
void *decoration;
};
/*
* The data structure.
*
* This data structure must be zero-initialized.
*/
struct decoration {
/*
* Not used by the decoration mechanism. Clients may use this for
* whatever they want.
*/
const char *name;
/*
* The capacity of "entries".
*/
unsigned int size;
/*
* The number of real Git objects (that is, entries with non-NULL
* "base").
*/
unsigned int nr;
/*
* The entries. This is an array of size "size", containing nr entries
* with non-NULL "base" and (size - nr) entries with NULL "base".
*/
struct decoration_entry *entries;
};
/*
* Add an association from the given object to the given pointer (which may be
* NULL), returning the previously associated pointer. If there is no previous
* association, this function returns NULL.
*/
void *add_decoration(struct decoration *n, const struct object *obj, void *decoration);
/*
* Return the pointer associated to the given object. If there is no
* association, this function returns NULL.
*/
void *lookup_decoration(struct decoration *n, const struct object *obj);
/*
* Clear all decoration entries, releasing any memory used by the structure.
* If free_cb is not NULL, it is called for every decoration value currently
* stored.
*
* After clearing, the decoration struct can be used again. The "name" field is
* retained.
*/
void clear_decoration(struct decoration *n, void (*free_cb)(void *));
#endif
You can’t perform that action at this time.