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

Git branches sorted by committer date not having numbered aliases #266

Open
axsuul opened this issue Sep 2, 2018 · 3 comments
Open

Git branches sorted by committer date not having numbered aliases #266

axsuul opened this issue Sep 2, 2018 · 3 comments

Comments

@axsuul
Copy link

axsuul commented Sep 2, 2018

I have an issue with lots of branches and sorting by last commit makes everything more sane. But it appears that --sort=committerdate is not an argument that scm_breeze recognizes so doing something like

gb --sort=committerdate

uses the vanilla git command without numbered aliases. What's the best way to go about getting numbered alias support with the --sort argument? I've tried

__git_alias "$git_branch_delete_force_alias" "_scmb_git_branch_shortcuts" "--sort=committerdate"

And thank you for this great tool!

@axsuul axsuul changed the title Git branches sorted by committer date Git branches sorted by committer date not having numbered aliases Sep 2, 2018
@ghthor
Copy link
Member

ghthor commented Sep 5, 2018

It would need to be incorporated into the _scmb_git_branch_shortcuts function. This might be nice hidden behind an environmental flag, such that your gb shortcut either uses it or it doesn't based on the env variable setting.

@axsuul
Copy link
Author

axsuul commented Sep 12, 2018

@ghthor Happy to make a PR for this. Any suggestions on what the environment flag should be?

SCM_BREEZE_FORCE_GIT_BRANCH?

@ghthor
Copy link
Member

ghthor commented Oct 18, 2018

@axsuul How about GIT_BRANCH_SORT_COMMITER_DATE, if you find any time to PR this, no judgement, just a little nudge =)

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

No branches or pull requests

2 participants