-
-
Notifications
You must be signed in to change notification settings - Fork 23
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
git log -n 1
doesn't seem to work
#69
Comments
Oops, forgot to add:
Running on Fedora 35. |
Ah interesting. This is an edge case that was never considered. I'm not sure if this is a generic way to handle this, so we'd have to special case all known single flag git arguments that can take an integer argument after a space. That requires keeping scmpuff in lockstep with potential git porcelain changes in the future, but I can't think of a way around that that would handle this edge case. |
For Sigh, yep, confirmed, it does... |
Adding more and more test cases in #70 just for git log. Git CLI is really inconsistent here. In short it's going to be a mess to special case everything. Git does not (or at least the version on my laptop) to appear allow combining short flags, so we wouldn't have to deal with parsing In contrast, And that's just what I've found on a quick glance... going to go for a walk and clear my head before thinking more of this. If the list of special cases and exceptions becomes large, it's going to be difficult to keep in sync with various versions of git CLI. |
Ouch, I'd never really paid attention before to how inconsistent Git CLI is. Seems like this is going to be tricky 😬 |
Hi, thanks for this great tool. git isn't the same without it.
I think I found a bug.
git log -1
andgit log -n1
work fine, butgit log -n 1
only works for non-scmpuff git.The text was updated successfully, but these errors were encountered: