Closed suzuki-shunsuke closed 4 years ago
thank you for proposal. oh, dear, there are so many git arguments π£
It is my favor but I believe adding more then 1 complex options/arguments, clone_options and fetch_options, will confuse user from "how to use this orb?".
Is it chance to offer 2 commands?
clone_options
. breaking changeThank you for your reply. Looks Good.
For the new command, maybe we can remove the parameter depth
and fetch_depth
.
So do you have any idea of new command name?
may be adding some predictable word?
remove checkout?
This orb name is git-shallow-clone
, so maybe shallow
isn't needed in the command name.
seems nice π
supporting each options is match safer but too annoying.
description should indicate user that eval
is used? no?
all code is open on orb registry, user can check what's going on. <- hey it's bash, who want to read :-p
description is enough?
on this stage,
https://github.com/guitarrapc/git-shallow-clone-orb/issues/12#issuecomment-602659755
I consider as...
I believe it's make sence.
command names.
changes are included in #14 .
Similar to https://github.com/guitarrapc/git-shallow-clone-orb/issues/9 .
git fetch
command supports some options about shallow clone such as--shallow-since
.So I propose to add an optional option
fetch_options
. When the optionfetch_options
is set the parameterfetch_depth
is ignored because--depth
argument may conflict other arguments. If users want to set thedepth
parameter along withfetch_options
, they can set--depth
argument infetch_options
.--force
option shouldn't be set infetch_options
because it is set automatically. And in case of a pull request,-t
option is also set automatically.What do you think?
Thank you.