main
1// Format facts the write API checks itself. Numeric literals that encode a git rule live here, next to the
2// spec, and the rest of src/write imports the names. Mirrors ply's src/format.js for the facts ply does not re-export.
4/** SHA-1 object id width. gitformat-pack(5): object names in packs are 20 bytes. */
5export const OID_BYTES = 20;
6/** Hex digits in a SHA-1 object name. Two hex characters per byte. */
7export const OID_HEX_CHARS = OID_BYTES * 2;
9/**
10 * Tree modes git writes (gitobject(7); the tree stores the octal text with no leading zero).
11 * `100644` regular file, `100755` executable, `120000` symlink, `40000` tree.
12 */
13export const MODE_BLOB = '100644';
14export const MODE_EXEC = '100755';
15export const MODE_LINK = '120000';
16export const MODE_TREE = '40000';
18export const BLOB_MODES = Object.freeze([MODE_BLOB, MODE_EXEC, MODE_LINK]);
20/** Sentinel shared with String.prototype.indexOf and ply's indexOfBytes: the needle is absent. */
21export const NOT_FOUND = -1;
23/** Change operations one commit can apply, in order. */
24export const OP_CREATE = 'create';
25export const OP_WRITE = 'write';
26export const OP_EDIT = 'edit';
27export const OP_DELETE = 'delete';
28export const OP_RENAME = 'rename';
Diagnostics4 git calls · 279 ms
CallStatusSizeTime0279 ms
discover200152 B3 ms
git.upload-pack discover http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 git.response.bytes=152 git.server.agent=gitty/1.0 git.server.object_format=sha1 git.server.caps=agent ls-refs fetch object-format git.server.fetch=shallow filter sideband-all git.protocol.version=2 git.pkt.frames=8 git.pkt.data=6 git.pkt.flush=2 git.pkt.delim=0 git.pkt.bytes=152 git.pkt.payload.max=34
ls-refs200145 B · hit3 ms
git.upload-pack ls-refs http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=ls-refs git.upstream.dur_ms=3 git.response.bytes=145 git.response.cache=HIT git.response.duration_ms=3 git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=145 git.pkt.payload.max=76 git.ls_refs.count=2 git.ls_refs.head=refs/heads/main
fetchblob:none · deepen 1020040 KiB · hit3 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=2 git.response.bytes=41349 git.response.cache=HIT git.response.duration_ms=3 git.fetch.filter=blob:none git.fetch.filter.requested=tree:0 git.fetch.filter.fallback=blob:none git.fetch.filter.learned=false git.fetch.wants=526b305930b8ef382f2d7a1f9c0238730a585921 git.fetch.haves.count=0 git.fetch.deepen=10 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=6 git.pkt.data=4 git.pkt.flush=1 git.pkt.delim=1 git.pkt.bytes=41349 git.pkt.payload.max=41254 git.sideband.band1.bytes=41253 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0 git.pack.objects=61 git.pack.bytes=41253 git.pack.ofs_delta=0 git.pack.ref_delta=0 git.pack.chain.max=0 git.pack.trailer=ab60efef4b7243678c75de64a4386986ee885c1c git.pack.full=61Open pack map
fetch200690 B273 ms
git.upload-pack fetch http.response.status_code=200 git.upstream.cf_ray=- git.upstream.phase=fetch git.upstream.dur_ms=273 git.response.bytes=690 git.response.cache=MISS git.response.duration_ms=273 git.fetch.wants=22c0a4088ae7206e1cf84e3846894976bb2326b3 git.fetch.haves.count=0 git.fetch.deepen=0 git.fetch.thin_pack=false git.fetch.ofs_delta=true git.protocol.version=2 git.pkt.frames=3 git.pkt.data=2 git.pkt.flush=1 git.pkt.delim=0 git.pkt.bytes=690 git.pkt.payload.max=669 git.sideband.band1.bytes=668 git.sideband.band2.bytes=0 git.sideband.band3.bytes=0
Each row is one HTTP round trip ply made to the git server for this page, on one timeline. discover asks what the server speaks, ls-refs lists branch tips, fetch brings objects by id. A hit was served by Workers Cache. Tap a row for its wire details.
- Remote
- https://5ad2236b39de4c8bd8f6270ea63f3ea9.artifacts.cloudflare.net/git/public-v0/ply-web.git
- Ref
- refs/heads/main
- Commit
- 526b305930b8ef382f2d7a1f9c0238730a585921
- cf-ray
- a5e2d4baffc2689d
- Request
- 8ed4fedf…
- Protocol
- v2 · sha1
- Agent
- gitty/1.0
- Filter
- advertised
- Fetch
- shallow filter sideband-all
- Capabilities
- agent ls-refs fetch object-format