Re: [PATCH v1 11/11] git-gui: add gui and pick as explicit subcommands
Am 19.05.26 um 20:45 schrieb Mark Levedahl:
Show 19 quoted lines
> What I have now is
>
> if (enabled gitdir discovery) {
> discover gitdir
> maybe an error occurs and gitdir remains {}
> }
>
> if (enabled pick && gitdir eq {}) {
> unset GIT_DIR .. (just to be friendly, could throw an error instead...)
> pick
> discover gitdir to VALIDATE pick gave us a good thing
> }
>
> if no gitdir {
> error No Repository
> }
>
> then on to worktree discovery (which also validates what pick returns as pick may not have
> done so).