-
Notifications
You must be signed in to change notification settings - Fork 10
Add basic for-each-ref command #239
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
base: master
Are you sure you want to change the base?
Conversation
} | ||
|
||
flags.Parse(args) | ||
refs, err := git.ShowRef(c, git.ShowRefOptions{}, []string{}) |
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.
I think this part that does the work should be in the git package to be consistent with other commands.
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.
@sirnewton01 ping.. are you going to get a chance to refactor this, or do you want me to pick it up? I don't think it should be a lot of work.
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.
I can have a look at doing the refactor at some point. Sorry, just really busy at the moment.
This is just enough to satisfy some of what the t5516-fetch-pull tests need. It supports the basic format only and commits only. The pattern doesn't support wildcards yet.