Search code examples
gitgerritgit-clone

How to make a new clone command or add clone options in Gerrit?


The download-commands plugin makes a few very useful commands available for cloning repository and fetching patches. As for clone commands, it gives clone and clone with commit-msg hook.

However, I would like to either add a new clone command or add options to the clone commands to simplify some operations. For example, clone -b or clone --recurse-submodules or any other added options for git clone. Is this supported? If so, how would I do this?


Solution

  • Not currently possible

    Someone will have to extend the existing plugin or develop a new one for this feature to be possible.