1
0
mirror of https://github.com/nvbn/thefuck.git synced 2025-01-19 04:21:14 +00:00

Merge pull request #617 from josephfrazier/git-stash-add-updated

git_stash_pop: Add only updated files
This commit is contained in:
Vladimir Iakovlev 2017-03-22 15:25:25 +04:00 committed by GitHub
commit c5f7c89222
2 changed files with 2 additions and 2 deletions

View File

@ -15,4 +15,4 @@ def test_match(stderr):
def test_get_new_command(stderr): def test_get_new_command(stderr):
assert (get_new_command(Command('git stash pop', stderr=stderr)) assert (get_new_command(Command('git stash pop', stderr=stderr))
== "git add . && git stash pop && git reset .") == "git add --update && git stash pop && git reset .")

View File

@ -11,7 +11,7 @@ def match(command):
@git_support @git_support
def get_new_command(command): def get_new_command(command):
return shell.and_('git add .', 'git stash pop', 'git reset .') return shell.and_('git add --update', 'git stash pop', 'git reset .')
# make it come before the other applicable rules # make it come before the other applicable rules