lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Provide an `--unshallow` option for fetch or pull

Open pvonmoradi opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe.

1- git clone --depth=1 some-heavy-repo 2- Now, we can't pull the repo completely from lazygit. We should git pull|fetch --unshallow from command-line.

Describe the solution you'd like

Provide an option to do an --unshallow fetch or pull

pvonmoradi avatar Aug 04 '22 09:08 pvonmoradi

How often is this done? Once per a clone, only if it's a shallow one in the first place?

I advise to execute custom command with : and run git fetch --unshallow.

mark2185 avatar Aug 04 '22 09:08 mark2185

This could also be a good candidate for a pre-set custom command. See https://github.com/jesseduffield/lazygit/wiki/Custom-Commands-Compendium

It's much easier to implement features if a user has created a custom command for it first, because it's clearer what the expected behaviour is

jesseduffield avatar Aug 08 '22 08:08 jesseduffield