summaryrefslogtreecommitdiff
path: root/debian/patches/0002-abbrev-commit.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0002-abbrev-commit.patch')
-rw-r--r--debian/patches/0002-abbrev-commit.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/0002-abbrev-commit.patch b/debian/patches/0002-abbrev-commit.patch
new file mode 100644
index 0000000..64d298b
--- /dev/null
+++ b/debian/patches/0002-abbrev-commit.patch
@@ -0,0 +1,29 @@
+Author: Daniel Baumann <mail@daniel-baumann.ch>
+Description:
+ Showing commit IDs shortened by default to 7 characters (in line with default
+ git --abbrev-commit) rather than the unusual 12.
+
+diff -Naurp irker.orig/irkerhook.py irker/irkerhook.py
+--- irker.orig/irkerhook.py
++++ irker/irkerhook.py
+@@ -262,7 +262,7 @@ class GitExtractor(GenericExtractor):
+ else: # self.revformat == 'describe'
+ commit.rev = do("git describe %s 2>/dev/null" % shellquote(commit.commit))
+ if not commit.rev:
+- commit.rev = commit.commit[:12]
++ commit.rev = commit.commit[:7]
+ # Extract the meta-information for the commit
+ commit.files = do("git diff-tree -r --name-only " + shellquote(commit.commit))
+ commit.files = " ".join(commit.files.strip().split("\n")[1:])
+diff -Naurp irker.orig/irkerhook.xml irker/irkerhook.xml
+--- irker.orig/irkerhook.xml
++++ irker/irkerhook.xml
+@@ -216,7 +216,7 @@ may have the following values:</para>
+ </varlistentry>
+ <varlistentry>
+ <term>short</term>
+-<listitem><para>first 12 chars of hex ID</para></listitem>
++<listitem><para>first 7 chars of hex ID</para></listitem>
+ </varlistentry>
+ <varlistentry>
+ <term>describe</term>