Skip to content

For git tree selection use isomorphic-git or similar package #57

Description

@MekDrop

Code would look something like:

import * as git from 'isomorphic-git';
import http from 'isomorphic-git/http/web';
import LightningFS from '@isomorphic-git/lightning-fs';

const fs = new LightningFS('repos');

await git.clone({
  fs,
  http,
  dir: '/repo',
  url: 'https://gitlab.com/group/project.git',
  singleBranch: true,
  depth: 1,
  noCheckout: true,
});

const files = await git.listFiles({
  fs,
  dir: '/repo',
});

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions