Skip to content

Commit

Permalink
.pre-commit-config.yaml: Add hint about skipping the rebase check
Browse files Browse the repository at this point in the history
Signed-off-by: Bernhard Kaindl <bernhard.kaindl@cloud.com>
  • Loading branch information
bernhardkaindl committed Mar 25, 2024
1 parent 7501950 commit 8c29fd5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,15 @@ repos:
files: '(^xen-bugtool|\.py)$'


# --------------------
# Hint about this hook
# --------------------
#
# If you want to skip this hook (in case the branch shall not be rebased), use:
# export SKIP=check-branch-needs-rebase or (for example):
# SKIP=check-branch-needs-rebase pre-commit run --hook-stage push --all-files -v
# SKIP=check-branch-needs-rebase git commit -s -m "your message"
#
- repo: local
hooks:
- id: check-branch-needs-rebase
Expand Down

0 comments on commit 8c29fd5

Please sign in to comment.