summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbackflip7
1 files changed, 7 insertions, 0 deletions
diff --git a/backflip b/backflip
index 170271d..625c8b3 100755
--- a/backflip
+++ b/backflip
@@ -231,6 +231,13 @@ if $INTERACTIVE; then
else
git status --porcelain | grep "^.U" && \
{ mv ${PREFIX}.log ${PREFIX}-ko.log; clean 1; }
+ # Avoid creating branches and review request for empty modification
+ # (like ChangeLog fixes) but it can be needed for stacked backports.
+ if ! $STACKED && git diff --cached --quiet; then
+ print_info "Nothing to commit"
+ mv ${PREFIX}.log ${PREFIX}-empty.log;
+ clean 1
+ fi
fi
# ==============================================================================