]> git.cworth.org Git - nogit/commit
Implement "nogit clone"
authorCarl Worth <cworth@cworth.org>
Sun, 5 Jul 2020 05:44:09 +0000 (22:44 -0700)
committerCarl Worth <cworth@cworth.org>
Sun, 5 Jul 2020 05:49:39 +0000 (22:49 -0700)
commitd770602343c5f9be8064c38bb46370246ff950ff
tree594f6fb75180b8b2708d8a65c980675095f6be62
parent154e5546100e7141ce23903082528d7dab3d9c33
Implement "nogit clone"

This is logically just a git clone with the following two differences:

  1. It works in the current directory instead of making a new directory

  2. It puts its object store into .nogit instead of .git, (and it's just
     fine if there's already a .git here).

There are safety checks and it will refuse to clone in either of the
following cases:

  1. There is already a .nogit directory present

  2. Any of the working-tree files to be cloned already exist
nogit