git-short-link ( id -- short-link )


Vocabulary
mason.report

Inputs
idan object


Outputs
short-linkan object


Definition


: git-short-link ( id -- short-link )
dup empty?
[ drop "—" ] [
[ git-id>url ] keep dup length 8 >
[ 8 head "…" append ] when 2 nenum T{ xml-chunk
{ seq
V{
""
T{ tag
{ name ~name~ }
{ attrs ~attrs~ }
{ children ~vector~ }
}
""
}
}
} interpolate-xml
] if ;