Merge 31056fc27d into 62e0767c50
This commit is contained in:
commit
cb2893226a
|
|
@ -22,6 +22,7 @@ var/
|
|||
*.egg-info/
|
||||
.installed.cfg
|
||||
*.egg
|
||||
venv/
|
||||
|
||||
# PyInstaller
|
||||
# Usually these files are written by a python script from a template
|
||||
|
|
|
|||
|
|
@ -348,6 +348,7 @@ following rules are enabled by default:
|
|||
* `yarn_command_not_found` – fixes misspelled `yarn` commands;
|
||||
* `yarn_command_replaced` – fixes replaced `yarn` commands;
|
||||
* `yarn_help` – makes it easier to open `yarn` documentation;
|
||||
* `git_merge_mistake` – fixes slash mistake in git merge;
|
||||
|
||||
##### [Back to Contents](#contents)
|
||||
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
def match(command):
|
||||
|
||||
return (
|
||||
command.script == "checkout master"
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return (command.script.replace("checkout master","git checkout master",1))
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
def match(command):
|
||||
|
||||
return (
|
||||
command.script == "status"
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return (command.script.replace("status","git status",1))
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
def match(command):
|
||||
return command.script == 'git add -a'
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return 'git add -A'
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
def match(command):
|
||||
return command.script == 'add'
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return 'git add -A'
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
def match(command):
|
||||
|
||||
return (
|
||||
command.script == "init"
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return (command.script.replace("init","git init",1))
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
def match(command):
|
||||
return (
|
||||
command.script == 'git merge originmain'
|
||||
)
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return command.script.replace('originmain', 'origin/main', 1)
|
||||
|
|
@ -0,0 +1,8 @@
|
|||
def match(command):
|
||||
return (
|
||||
command.script == "git push origin/main"
|
||||
)
|
||||
|
||||
|
||||
def get_new_command(command):
|
||||
return command.script.replace("origin/main", "origin main", 1)
|
||||
Loading…
Reference in New Issue