update: tweak _post_checkout_help
Print the git commands on their own lines to make them more visible. Suggested-by: Joakim Andersson <joakim.andersson@nordicsemi.no> Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
parent
da7668699a
commit
99482c6845
|
@ -1313,7 +1313,7 @@ def _post_checkout_help(project, branch, sha, is_ancestor):
|
|||
# print a message that makes it easy to get back,
|
||||
# no matter where in the workspace os.getcwd() is.
|
||||
log.wrn(f'left behind {project.name} branch "{branch}"; '
|
||||
f'to switch back to it (fast forward), use: '
|
||||
f'to switch back to it (fast forward):\n'
|
||||
f' git -C {rel} checkout {branch}')
|
||||
log.dbg('(To do this automatically in the future,',
|
||||
'use "west update --keep-descendants".)')
|
||||
|
@ -1321,7 +1321,7 @@ def _post_checkout_help(project, branch, sha, is_ancestor):
|
|||
# Tell the user how they could rebase by hand, and
|
||||
# point them at west update --rebase.
|
||||
log.wrn(f'left behind {project.name} branch "{branch}"; '
|
||||
f'to rebase onto the new HEAD: '
|
||||
f'to rebase onto the new HEAD:\n'
|
||||
f' git -C {rel} rebase {sha} {branch}')
|
||||
log.dbg('(To do this automatically in the future,',
|
||||
'use "west update --rebase".)')
|
||||
|
|
Loading…
Reference in New Issue