amtoine / nu-git-manager

A collection of Nushell tools to manage Git repositories.
GNU General Public License v3.0
26 stars 2 forks source link

use a default "fetch" strategy #195

Closed amtoine closed 4 months ago

amtoine commented 4 months ago

up until now, the default strategy for gm repo branch fetch has been none, which implies that, to have a proper "fetch strategy", --strategy <strat> had to be used every time...

however, in my Git config, i have pull.rebase set to true, which means i want to rebase most of the time.

this PR makes it so that the default value of strategy: string is either rebase when pull.rebase is set or merge when it's not.

the "strategy" can always be