-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4553 from luke-h1/dev
merge dev into main
- Loading branch information
Showing
5 changed files
with
80 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
|
||
RED=$(tput setaf 1) | ||
GREEN=$(tput setaf 2) | ||
RESET=$(tput sgr0) | ||
|
||
COMMITS_BEHIND_MAIN=$(eval "git rev-list --left-right --count origin/dev...HEAD" | cut -f1) | ||
|
||
if [ $COMMITS_BEHIND_MAIN -gt 0 ]; then | ||
echo "${RED}Branch is behind dev by $COMMITS_BEHIND_MAIN commits. Please rebase ${RESET}" | ||
else | ||
echo "${GREEN}Branch is in-sync with dev.${RESET}" | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters