Conversation
aspiers
left a comment
There was a problem hiding this comment.
Firstly thanks a lot for the suggestion! Yes it does seem that this can be improved. I'm not 100% convinced by your exact approach here, since IIUC this would break passing in arguments like master~3 or mybranch^!. It seems that the web GUI code does an additional call to detector.get_commit to handle those, so maybe also reusing that logic is the answer? In which case, a new function should probably be refactored out in order to avoid duplicating code.
|
I appears that things like I'm not sure about To specify ranges, the current code still handles the I think that we want this to behave quite like
I think that we could do that by first trying |
The CLI unconditionally passes all argument to rev-list, even if the argument is a single commit rather than a revision range. This causes the CLI to always analyse the entire git history up to the given commit, rather than just that commit. Introduced in d601e35.
|
@robhoes commented on 22 Jan 2018, 11:34 GMT:
Correct.
I guess you mean the
Yes, that's a range containing a single commit.
Ah, I think I see the confusion. I already changed this behaviour in 4caf25a but that's only the
Yes, exactly - that's what 4caf25a does.
It looks like I made the odd decision to fork a |
|
@aspiers I'm not sure if you had seen my updated patch. It's quite straightforward and I believe that it does the right thing in all cases. |
|
Issue was reported in #82. |
The CLI unconditionally passes all argument to rev-list, even if the argument
is a single commit rather than a revision range. This causes the CLI to always
analyse the entire git history up to the given commit, rather than just that
commit.
Introduced in d601e35.
This change is