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

Straighten up effort #445

Merged
merged 4 commits into from
Sep 14, 2015
Merged

Straighten up effort #445

merged 4 commits into from
Sep 14, 2015

Conversation

nicolaiskogheim
Copy link
Collaborator

This commit does mainly two things:

  1. Simplify logic, making it easier to understand the code and add to it
  2. Change the synopsis of the command so that we are less likely to be needing to break it later.

Tested only on OSX with Bash 4.3

Why:

* The old way of handling arguments could make it
difficult to make non-breaking changes because
to be able to handle more arguments than the
'--above' argument, the logic would need to be heavily
refactored and demand restrictions on argument order.

This change addresses the need by:

* Parse arguments in a cleaner way
* Make the command more future proof with respect to arguments

Notable change is the synopsis. Please the see man page.
This makes git effort less prone to failing if
someone passes formatting options
@hemanth
Copy link
Collaborator

hemanth commented Sep 14, 2015

👍

hemanth added a commit that referenced this pull request Sep 14, 2015
@hemanth hemanth merged commit c8aca55 into tj:master Sep 14, 2015
@nicolaiskogheim nicolaiskogheim deleted the straighten-up-effort branch September 14, 2015 23:43
@qw3rtman qw3rtman mentioned this pull request Dec 27, 2015
tardypad pushed a commit to tardypad/git-extras that referenced this pull request Jul 13, 2016
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.

2 participants