reaction-cli icon indicating copy to clipboard operation
reaction-cli copied to clipboard

Init cmd unnecessary clones the entire history of the master branch.

Open nicroto opened this issue 7 years ago • 0 comments

I've described the issue here.

I think the first solution should be sufficient - instead of the current regular clone, init would clone like this:

$ git clone --depth=1 <repo-url>

If the owners of the repo would agree on this improvement - I would like to submit a PR.

If this is accepted, would this be the appropriate workflow?

  • I fork the repo;
  • create a new branch with name "perf-68-nicroto-faster-init";
  • commit my changes (likely/hopefully just 1 commit named "(perf) speed-up init command by shallow cloning");
  • (haven't done this for a branch that doesn't exist on the original repo, but I am sure I can somehow) submit a pull request.

Cheers!

nicroto avatar May 02 '18 08:05 nicroto