rules(git): simplify

This commit is contained in:
iff 2025-03-28 16:07:45 +01:00
parent 7c0af13252
commit bdc1327d29

View file

@ -79,8 +79,7 @@ suggest = [
git checkout {{typo[2]({{shell(git branch | sed 's/^*//')}})}} ''',
'''
#[cmd_contains(checkout)]
git branch {{command[2]}} && \
git checkout {{command[2]}} '''
git checkout -b {{command[2]}} '''
]
[[match_err]]