#in-memory git in Deno

17 messages · Page 1 of 1 (latest)

slender flicker
#

I want to write a deno script that git clones, creates a branch, commit and pushes without relying on Deno.run and the filesystem. Is it possible to do these in-memory somehow?

stuck abyss
#

it's a git implementation written in javascript

#

It looks like it has a browser build which may work with deno

slender flicker
#

Will try and report back

#

I need cherry-pick support

stuck abyss
#

hm

#

what for?

#

I'm wondering if there is a better way of doing what you need to do

slender flicker
#

I backport from main

#

And I must preserve authorship information

stuck abyss
#

Yeah I'm not sure, this is tricky.

#

Deno.run seems like the best choice even if it's not great

slender flicker
#

I have to run in github actions because deno deploy doesn't support Deno.run 😦

stuck abyss
#

Yeah, that's a bit unlucky. I'm not great at git so it may be possible to actually just use a few git commands to re-create cherry-pick but I'm not sure. @north ruin do you have any ideas / know someone who is good at git stuff?

north ruin
#

this is actually an issue we will be facing as well, as we are moving the /x/ registry from lambda to deploy. i havent investigated this at all yet, so i have no clue currently