[#154] Add '--date=now' to 'hit ammend' (#167)

Resolves #154
This commit is contained in:
Veronika Romashkina 2020-06-25 12:47:42 +01:00 committed by GitHub
parent 5333b70387
commit b49673d5ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -30,6 +30,8 @@ The changelog is available [on GitHub][2].
Strip `[RFC]` prefix from issues in branch names and commit messages.
* [#152](https://github.com/kowainik/hit-on/issues/152):
Filter out PRs from the list of all issues in the `hit issue` command.
* [#154](https://github.com/kowainik/hit-on/issues/154):
Add `--date=now` to the `amend` command.
### 0.1.0.0 — Aug 3, 2019

View File

@ -4,7 +4,7 @@ module Hit.Git.Amend
( runAmend
) where
import Shellmet()
import Shellmet ()
import Hit.Core (PushBool (..))
import Hit.Git.Push (runPush)
@ -14,5 +14,5 @@ import Hit.Git.Push (runPush)
runAmend :: Bool -> IO ()
runAmend localAmend = do
"git" ["add", "."]
"git" ["commit", "--amend", "--no-edit"]
"git" ["commit", "--amend", "--no-edit", "--date", "now"]
unless localAmend $ runPush Force