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

[RFC] effort: Allow sending options to log. Fix #326 #391

Merged
merged 4 commits into from
Jul 25, 2015
Merged

[RFC] effort: Allow sending options to log. Fix #326 #391

merged 4 commits into from
Jul 25, 2015

Conversation

nicolaiskogheim
Copy link
Collaborator

Putting this up for discussion.

This makes it possible for git effort to take other options other than --above.
These get sent to git log in effort().

So this is possible now:
git effort --since="one year ago" --until="one week ago" --above 10 mydir/*

Invalid options is handled by git log, which I think is nice.

Note though: The original issue wanted to have these options to speed up the process by limiting the commit history, but there is no remarkable performance gain by this as far as I were able to see.

TODO if this is wanted:

  • Man pages
  • Completion

@nicolaiskogheim nicolaiskogheim changed the title effort: Allow sending options to log. Fix #326 [RFC] effort: Allow sending options to log. Fix #326 Jul 8, 2015
@hemanth
Copy link
Collaborator

hemanth commented Jul 10, 2015

//cc @spacewander

@spacewander
Copy link
Collaborator

This is a good idea.

@hemanth
Copy link
Collaborator

hemanth commented Jul 12, 2015

@nicolaiskogheim Please go ahead and complete the PR :)

@nicolaiskogheim
Copy link
Collaborator Author

This is finally working as it should now.
Feel free to try it out.

The man page and completion remains. I should have that done soon.

@hemanth
Copy link
Collaborator

hemanth commented Jul 23, 2015

👍

@nicolaiskogheim
Copy link
Collaborator Author

All done.

@nicolaiskogheim
Copy link
Collaborator Author

Hold on a bit. I think I found a way to avoid using eval. It's not dangerous to have it in this situation, I just think I can make it look a bit cleaner.

Edit: Nope, didn't work.

This is ready to be merged in as far as I can tell.

hemanth added a commit that referenced this pull request Jul 25, 2015
[RFC] effort: Allow sending options to log. Fix #326
@hemanth hemanth merged commit 651a2ba into tj:master Jul 25, 2015
@hemanth
Copy link
Collaborator

hemanth commented Jul 25, 2015

Done. Cool 👍

@nicolaiskogheim nicolaiskogheim deleted the effort-limit-commits branch September 14, 2015 23:50
@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
[RFC] effort: Allow sending options to log. Fix tj#326
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.

3 participants