Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Amend complex commits #719

Merged
merged 3 commits into from
Mar 15, 2018
Merged

Amend complex commits #719

merged 3 commits into from
Mar 15, 2018

Conversation

Fryuni
Copy link
Contributor

@Fryuni Fryuni commented Dec 23, 2017

Solving the bug from issue #681 and #710

Sadly I didn't found any way to create a complete test for this function
I added a full test of the Commit Amend with a complex commit message, but I can see how some changes in the future might break the function without breaking the tests

Actually the original code have exactly the same problem, the tests cannot validate the return of the 'parse' function because it's private to the 'git-commit-amend' file
So if some future changes breaks the return to another valid return, but not the correct one (maybe missing one of the previous modifications), the tests will still pass

Could not write it as a unit test because of the parse functions being private
Changed how 'git whatchanged' result is parsed when generating commit amend
@akonwi
Copy link
Owner

akonwi commented Jan 9, 2018

Sweet! I'll try to publish this change later today

@akonwi akonwi merged commit c0b476f into akonwi:master Mar 15, 2018
@Fryuni Fryuni deleted the amend-complex-commits branch March 15, 2018 05:57
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants