-
-
Notifications
You must be signed in to change notification settings - Fork 72
Added more type hinting & Fixed bug when parsing renamed files with spaces and/or non english-symbols #194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
…s around the filenames (file names with non-english symbols for example)
- introduced data property to Tag - added .idea to .gitignore
continuous-integration/styleci/pr" - fixed composer.json
|
I'd also like to request a new tag with this version since one of our projects depends on the fix for filenames with non-standart characters. |
lyrixx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super cool 👏🏼
- with umlauts added a test - made changes @lyrixx suggested
lyrixx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor comment and we are good :)
lyrixx
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍🏼 Thanks you very much for the work
|
I'm glad I could contribute :) |
|
Here you go: https://github.com/gitonomy/gitlib/releases/tag/v1.3.6 |
I added more type hints to the docBlocks to profit from the auto completion of the IDE (like phpStorm). (commit 1) (commit 2) (commit 3)
I also added some missing use statements here and there
Also there was a bug where you couldn't list the files of a diff when the filename was surrounded by quotation marks. This usually happened when the file name had spaces and/or a non english symbol like ä, ö, ü. (commit)
This is the exception one would get:
for this code
Setting up the
lengthinParserBase.phpfrom 30 to 500 (commit) helped getting me a more verbose exception:Furthermore there was an exception in
Git/Hooks.phpwhich didn't utilize the$pathbefore. (commit)In
Tree.phpthere was an$entryvariable which was out of place so I replaced it with$element(commit)In
Diff.phpthere was agetRevisions()method which would return$this->revision- but the Diff class has no revision attribute so it would always return undefined/null - so I removed the method (commit)At first I tried to get revision into the Diff, but I gave up since I wasn't sure how and if it makes sense.
There is a unsused
fullnamevariable ingetComit()in theTag.phpwhich I removed (commit)All unit tests were passed on my machine. I tried to fit the existing code guidelines.