Class Clone

    • Field Detail

      • remoteName

        private java.lang.String remoteName
      • branch

        private java.lang.String branch
      • noCheckout

        private boolean noCheckout
      • isBare

        private boolean isBare
      • isMirror

        private boolean isMirror
      • quiet

        private java.lang.Boolean quiet
      • cloneSubmodules

        private boolean cloneSubmodules
      • timeout

        int timeout
      • sourceUri

        private java.lang.String sourceUri
      • localName

        private java.lang.String localName
    • Constructor Detail

      • Clone

        Clone()
    • Method Detail

      • run

        protected void run()
                    throws java.lang.Exception
        Perform the actions of this command.

        This method should only be invoked by TextBuiltin.execute(String[]).

        Specified by:
        run in class TextBuiltin
        Throws:
        java.lang.Exception - an error occurred while processing the command. The main framework will catch the exception and print a message on standard error.
      • initializedSubmodules

        public void initializedSubmodules​(java.util.Collection<java.lang.String> submodules)
        Notify initialized submodules.
        Specified by:
        initializedSubmodules in interface CloneCommand.Callback
        Parameters:
        submodules - the submodules
      • cloningSubmodule

        public void cloningSubmodule​(java.lang.String path)
        Notify starting to clone a submodule.
        Specified by:
        cloningSubmodule in interface CloneCommand.Callback
        Parameters:
        path - the submodule path
      • checkingOut

        public void checkingOut​(AnyObjectId commit,
                                java.lang.String path)
        Notify checkout of commit
        Specified by:
        checkingOut in interface CloneCommand.Callback
        Parameters:
        commit - the id of the commit being checked out
        path - the submodule path