Codebergdnkl

foot

master
ply6 git calls920 ms29 KiB3 cachedprotocol v2
82 lines2.5 KiBRaw
1# Bash completion script for footclient
2_footclient()
3{
4 COMPREPLY=()
6 local cur prev flags word commands match previous_words i offset
7 flags=(
8 "--app-id"
9 "--toplevel-tag"
10 "--fullscreen"
11 "--help"
12 "--hold"
13 "--login-shell"
14 "--log-level"
15 "--log-colorize"
16 "--maximized"
17 "--override"
18 "--client-environment"
19 "--server-socket"
20 "--term"
21 "--title"
22 "--version"
23 "--window-size-pixels"
24 "--window-size-chars"
25 "--working-directory"
26 )
27 flags="${flags[@]}"
28 cur=${COMP_WORDS[COMP_CWORD]}
29 prev=${COMP_WORDS[COMP_CWORD-1]}
31 # Check if positional argument is completed
32 previous_words=( "${COMP_WORDS[@]}" )
33 unset previous_words[-1]
34 commands=$(compgen -c | grep -vFx "$(compgen -k)" | grep -vE '^([.:[]|footclient)$' | sort -u)
35 i=0
36 for word in "${previous_words[@]}" ; do
37 match=$(printf "$commands" | grep -Fx "$word" 2>/dev/null)
38 if [[ ! -z "$match" ]] ; then
39 if [[ ${COMP_WORDS[i-1]} =~ ^(--app-id|--toplevel-tag|--log-level|--server-socket|--term|--title|--window-size-pixels|--window-size-chars|--working-directory)$ ]] ; then
40 (( i++ ))
41 continue
42 fi
43 # Positional argument found
44 offset=$i
45 fi
46 (( i++ ))
47 done
49 if [[ ! -z "$offset" ]] ; then
50 # Depends on bash_completion being available
51 declare -F _command_offset >/dev/null || return 1
52 _command_offset $offset
53 return 0
54 elif [[ ${cur} == --* ]] ; then
55 COMPREPLY=( $(compgen -W "${flags}" -- ${cur}) )
56 return 0
57 fi
59 case "$prev" in
60 --server-socket|-s)
61 compopt -o default ;;
62 --working-directory|-D)
63 compopt -o dirnames ;;
64 --term|-t)
65 command -v toe > /dev/null || return 1
66 COMPREPLY=( $(compgen -W "$(toe -a | awk '$1 ~ /[+]/ {next}; {print $1}')" -- ${cur}) ) ;;
67 --log-level|-d)
68 COMPREPLY=( $(compgen -W "none error warning info" -- ${cur}) ) ;;
69 --log-colorize|-l)
70 COMPREPLY=( $(compgen -W "never always auto" -- ${cur}) ) ;;
71 --app-id|--toplevel-tag|--help|--override|--title|--version|--window-size-chars|--window-size-pixels|-[ahoTvWw])
72 # Don't autocomplete for these flags
73 : ;;
74 *)
75 # Complete commands from $PATH
76 COMPREPLY=( $(compgen -c -- ${cur}) ) ;;
77 esac
79 return 0
82complete -F _footclient footclient
Diagnostics6 git calls · 920 ms
CallStatusSizeTime0920 ms
discover200178 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=178
git.server.agent=git/2.56.1-Linux
git.server.object_format=sha1
git.server.caps=agent ls-refs fetch server-option object-format
git.server.fetch=shallow wait-for-done filter
git.protocol.version=2
git.pkt.frames=9
git.pkt.data=7
git.pkt.flush=2
git.pkt.delim=0
git.pkt.bytes=178
git.pkt.payload.max=35
ls-refs20010 KiB459 ms
git.upload-pack ls-refs
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=ls-refs
git.upstream.dur_ms=406
git.response.bytes=10322
git.response.cache=EXPIRED
git.response.duration_ms=459
git.protocol.version=2
git.pkt.frames=108
git.pkt.data=107
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=10322
git.pkt.payload.max=106
git.ls_refs.count=107
git.ls_refs.head=refs/heads/master
fetchcombine:blob:none+tree:2 · deepen 12008.6 KiB · hit2 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=3
git.response.bytes=8830
git.response.cache=HIT
git.response.duration_ms=2
git.fetch.filter=combine:blob:none+tree:2
git.fetch.wants=c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
git.fetch.haves.count=0
git.fetch.deepen=1
git.fetch.thin_pack=false
git.fetch.ofs_delta=true
git.protocol.version=2
git.pkt.frames=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=8830
git.pkt.payload.max=8730
git.sideband.band1.bytes=8730
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=14
git.pack.bytes=8730
git.fetch.wide.objects=14
git.fetch.wide.extra_bytes=9909
git.fetch.wide.blobs=0
fetchtree:0 · deepen 102009.3 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=9489
git.response.cache=HIT
git.response.duration_ms=3
git.fetch.filter=tree:0
git.fetch.wants=c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
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=7
git.pkt.data=5
git.pkt.flush=1
git.pkt.delim=1
git.pkt.bytes=9489
git.pkt.payload.max=9389
git.sideband.band1.bytes=9389
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=10
git.pack.bytes=9389
git.pack.ofs_delta=0
git.pack.ref_delta=0
git.pack.chain.max=0
git.pack.trailer=de930681b6073ba5b599a0f956bfbd114762ad5a
git.pack.full=10
Open pack map
fetchtree:0200133 B · hit1 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=1
git.response.bytes=133
git.response.cache=HIT
git.response.duration_ms=1
git.fetch.filter=tree:0
git.fetch.wants=44adf88aa1bb4dd07c080f1605235d2e075c4f7f
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=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=133
git.pkt.payload.max=106
git.sideband.band1.bytes=106
git.sideband.band2.bytes=0
git.sideband.band3.bytes=0
git.pack.objects=1
git.pack.bytes=106
git.pack.trailer=ed54ef790a9d645ded5355cff4a79c1c5e067091
Open pack map
fetch200999 B458 ms
git.upload-pack fetch
http.response.status_code=200
git.upstream.cf_ray=-
git.upstream.phase=fetch
git.upstream.dur_ms=458
git.response.bytes=999
git.response.cache=MISS
git.response.duration_ms=458
git.fetch.wants=c7f1df4e2d1b19343565e2a675262ef20fad9593
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=4
git.pkt.data=3
git.pkt.flush=1
git.pkt.delim=0
git.pkt.bytes=999
git.pkt.payload.max=972
git.sideband.band1.bytes=972
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://codeberg.org/dnkl/foot
Ref
refs/heads/master
Commit
c0d2c3e95d74cb60526ff28aec9f34ee3df545e0
cf-ray
a5e2ffe17c4ff3c9
Request
73911317…
Protocol
v2 · sha1
Agent
git/2.56.1-Linux
Filter
advertised
Fetch
shallow wait-for-done filter
Capabilities
agent ls-refs fetch server-option object-format