From d0227608b6ee56a23ea82bc9ceec95cf4e73c5b0 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Mon, 21 Apr 2025 12:59:28 +0200
Subject: [PATCH 1/4] Adding README.Debian to explain the basic usage of
 pre-commit-hooks (Closes: #1093805).

Signed-off-by: Daniel Baumann <daniel@debian.org>
---
 debian/pre-commit-hooks.README.Debian | 60 +++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)
 create mode 100644 debian/pre-commit-hooks.README.Debian

diff --git a/debian/pre-commit-hooks.README.Debian b/debian/pre-commit-hooks.README.Debian
new file mode 100644
index 0000000..0f12444
--- /dev/null
+++ b/debian/pre-commit-hooks.README.Debian
@@ -0,0 +1,60 @@
+pre-commit-hooks for Debian
+===========================
+
+1. pre-commit
+-------------
+
+pre-commit is a hook framework for the Git version control system. It allows
+managing and maintaining multi-language Git pre-commit hooks.
+
+When using multiple hooks managed by pre-commit, they are usually maintained
+in a Git repository on their own and then included in the pre-commit
+configuration file, within the repository they are being run in, like this:
+
+  --- .pre-commit-config.yaml ---
+  repos:
+  -   repo: https://github.com/pre-commit/pre-commit-hooks
+      rev: v5.0.0
+      hooks:
+      -   id: end-of-file-fixer
+      -   id: trailing-whitespace
+  [...]
+  ---
+
+Running 'pre-commit install' and 'pre-commit run --all-files' then will
+automatically download the referenced Git repository (pre-commit-hooks) and
+keep it updated.
+
+A demo repository is available upstream:
+https://github.com/pre-commit/demo-repo
+
+
+2. pre-commit-hooks
+-------------------
+
+As an alternative to referencing a (remote) Git repository and depend on its
+availabilty or the network connectivity to access it, hooks within pre-commit
+can also be configured to be used from the local filesystem. This is why the
+pre-commit-hooks package is included in Debian.
+
+The above example can be replicated the following way:
+
+  --- .pre-commit-config.yaml ---
+  repos:
+  -   repo: local
+      hooks:
+      -   id: end-of-file-fixer
+          name: end-of-file-fixer
+          language: python
+          entry: python3 /usr/lib/python3/dist-packages/pre_commit_hooks/end_of_file_fixer.py
+      -   id: trailing-whitespace
+          name: trailing-whitespace
+          language: python
+          entry: python3 /usr/lib/python3/dist-packages/pre_commit_hooks/trailing_whitespace_fixer.py
+  [...]
+  ---
+
+In future, the Debian package pre-commit-hooks might include some simplification
+(like an include file) way to reference these local pre-commit-hooks easier.
+
+ -- Daniel Baumann <daniel@debian.org>  Mon, 21 Apr 2025 12:55:47 +0200

From ba36946651a5a2c5c7a413e219547dd85621cf0b Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Mon, 21 Apr 2025 12:59:38 +0200
Subject: [PATCH 2/4] Releasing debian version 5.0.0+dfsg-4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
---
 debian/changelog | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9687f54..64a2255 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pre-commit-hooks (5.0.0+dfsg-4) sid; urgency=medium
+
+  * Adding README.Debian to explain the basic usage of pre-commit-hooks
+    (Closes: #1093805).
+
+ -- Daniel Baumann <daniel@debian.org>  Mon, 21 Apr 2025 12:59:35 +0200
+
 pre-commit-hooks (5.0.0+dfsg-3) sid; urgency=medium
 
   * Updating to standards version 4.7.1.

From 9040cd9fdbb03458ce0dd48e49041adad575f226 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Mon, 21 Apr 2025 12:59:28 +0200
Subject: [PATCH 3/4] Adding README.Debian to explain the basic usage of
 pre-commit-hooks (Closes: #1093805).

Signed-off-by: Daniel Baumann <daniel@debian.org>
---
 debian/pre-commit-hooks.README.Debian | 65 +++++++++++++++++++++++++++
 1 file changed, 65 insertions(+)
 create mode 100644 debian/pre-commit-hooks.README.Debian

diff --git a/debian/pre-commit-hooks.README.Debian b/debian/pre-commit-hooks.README.Debian
new file mode 100644
index 0000000..372b5ba
--- /dev/null
+++ b/debian/pre-commit-hooks.README.Debian
@@ -0,0 +1,65 @@
+pre-commit-hooks for Debian
+===========================
+
+1. pre-commit
+-------------
+
+pre-commit is a hook framework for the Git version control system. It allows
+managing and maintaining multi-language Git pre-commit hooks.
+
+When using multiple hooks managed by pre-commit, they are usually maintained
+in a Git repository on their own and then included in the pre-commit
+configuration file, within the repository they are being run in, like this:
+
+  --- .pre-commit-config.yaml ---
+  repos:
+  -   repo: https://github.com/pre-commit/pre-commit-hooks
+      rev: v5.0.0
+      hooks:
+      -   id: end-of-file-fixer
+      -   id: trailing-whitespace-fixer
+      -   id: name-tests-test
+  [...]
+  ---
+
+Running 'pre-commit install' and 'pre-commit run --all-files' then will
+automatically download the referenced Git repository (pre-commit-hooks) and
+keep it updated.
+
+A demo repository is available upstream:
+https://github.com/pre-commit/demo-repo
+
+
+2. pre-commit-hooks
+-------------------
+
+As an alternative to referencing a (remote) Git repository and depend on its
+availabilty or the network connectivity to access it, hooks within pre-commit
+can also be configured to be used from the local filesystem. This is why the
+pre-commit-hooks package is included in Debian.
+
+The above example can be replicated the following way:
+
+  --- .pre-commit-config.yaml ---
+  repos:
+  -   repo: local
+      hooks:
+      -   id: end-of-file-fixer
+          name: end-of-file-fixer
+          entry: end-of-file-fixer
+          language: system
+      -   id: trailing-whitespace-fixer
+          name: trailing-whitespace-fixer
+          entry: trailing-whitespace-fixer
+          language: system
+      -   id: name-tests-test
+          name: name-tests-test
+          entry: name-test-test
+          language: system
+  [...]
+  ---
+
+In future, the Debian package pre-commit-hooks might include some simplification
+(like an include file) way to reference these local pre-commit-hooks easier.
+
+ -- Daniel Baumann <daniel@debian.org>  Mon, 21 Apr 2025 12:55:47 +0200

From 77d2c391d98cc22d382f85604dea5b79047b63e5 Mon Sep 17 00:00:00 2001
From: Daniel Baumann <daniel@debian.org>
Date: Mon, 21 Apr 2025 12:59:38 +0200
Subject: [PATCH 4/4] Releasing debian version 5.0.0+dfsg-4.

Signed-off-by: Daniel Baumann <daniel@debian.org>
---
 debian/changelog | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 9687f54..64a2255 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+pre-commit-hooks (5.0.0+dfsg-4) sid; urgency=medium
+
+  * Adding README.Debian to explain the basic usage of pre-commit-hooks
+    (Closes: #1093805).
+
+ -- Daniel Baumann <daniel@debian.org>  Mon, 21 Apr 2025 12:59:35 +0200
+
 pre-commit-hooks (5.0.0+dfsg-3) sid; urgency=medium
 
   * Updating to standards version 4.7.1.