We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08ba5ce commit 193b9b2Copy full SHA for 193b9b2
EasyKey.git/ezk-git-functions.sh
@@ -83,7 +83,10 @@ function mergeChanges () {
83
behind_count=$(git rev-list --count ${current_branch}..${current_branch}@{upstream})
84
85
# Check if the current branch is ahead of the remote branch
86
- if [ $ahead_count -ge 0 ]; then
+ if [ $ahead_count -eq 0 ]; then
87
+ echo "Your current branch '$current_branch' is in sync with origin."
88
+ echo "... nothing to merge ..."
89
+ elif [ $ahead_count -ge 0 ]; then
90
echo "Your current branch '$current_branch' is ahead of its remote counterpart by $ahead_count commit(s)."
91
echo "... nothing to merge ..."
92
elif [ $behind_count -gt 0 ]; then
0 commit comments