You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
letheadRef=pull.headRef;if(flag_is_true){core.startGroup(`Resolving the bottom most branch chained from '${headRef}'.`);headRef=yieldthis.git.exec(['branch',`--contains`,headRef,'|','tail','-n','1']);core.info(`Resolved ref is '${headRef}'.`);core.endGroup();}
in order to replace the closest to main - branch1 to the furthest from main - branch4
and then code continues as previously
// Fetchcore.startGroup(`Fetching head ref '${headRef}'.`);yieldthis.git.fetch([headRef],remoteName);
Hi.
Sometimes there is a need to create a chain of branches like
While rebasing
branch1
all other branches will be full of conflicts due to obvious reason.There is an
--update-refs
flag for git which works only if the branch being rebased is the last one.So having some boolean flag like
rebase-last
(just an example) in conjunction withrebase-options: --update-refs
could be a game changer.To get last branch of the chain there is
git branch --contains branch1 | tail -n 1
The text was updated successfully, but these errors were encountered: