Skip to content
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

Print usage message from 'compare' #727

Merged
merged 2 commits into from
Sep 1, 2021
Merged

Print usage message from 'compare' #727

merged 2 commits into from
Sep 1, 2021

Conversation

michaeljones
Copy link
Collaborator

And default the second argument to the current branch if not specified.

As noted in the commit message, this is due to my own confusion when attempting to use the script after a long time :)

I was attempting to run it and failed to remember how it worked and that
it needed arguments. I thought it might have automatically diffed the
current branch with master.

We could add something to use current if the second arg isn't included.
If not included.

Means that you can write:

  ./compare master

To compare the current branch to master and not have to list out and
copy and paste the current branch.
@michaeljones michaeljones merged commit e073688 into master Sep 1, 2021
michaeljones pushed a commit that referenced this pull request Sep 14, 2021
Also chronologically sort by moving the entry for #721.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant