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

Improve git aliases #2176

Merged
merged 3 commits into from
Nov 6, 2024
Merged

Improve git aliases #2176

merged 3 commits into from
Nov 6, 2024

Conversation

royatt
Copy link
Contributor

@royatt royatt commented Dec 2, 2022

Description

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • If my change requires a change to the documentation, I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • If I have added a new file, I also added it to clean_files.txt and formatted it using lint_clean_files.sh.
  • I have added tests to cover my changes, and all the new and existing tests pass.

@royatt royatt marked this pull request as draft December 2, 2022 20:18
@royatt royatt changed the title Draft: Improve git aliases Improve git aliases Dec 2, 2022
@royatt
Copy link
Contributor Author

royatt commented Dec 3, 2022

@NoahGorny

else
echo master
fi
git symbolic-ref refs/remotes/origin/HEAD | sed 's@^refs/remotes/origin/@@'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be possible to use a bash substitution instead of farming out to sed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes this is very much possible, good idea, changed it in the newest commit.
think I should squash it down later with the original commit if it looks good

@royatt royatt force-pushed the improve-git-aliases branch 2 times, most recently from d9c339c to 949309d Compare December 5, 2022 20:19
@royatt royatt marked this pull request as ready for review December 23, 2022 18:52
@seefood seefood merged commit a80d898 into Bash-it:master Nov 6, 2024
6 checks passed
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.

4 participants