summaryrefslogtreecommitdiff
path: root/debian/patches/0003-abbrev-gitweb.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/0003-abbrev-gitweb.patch')
-rw-r--r--debian/patches/0003-abbrev-gitweb.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/patches/0003-abbrev-gitweb.patch b/debian/patches/0003-abbrev-gitweb.patch
new file mode 100644
index 0000000..a5dcc5d
--- /dev/null
+++ b/debian/patches/0003-abbrev-gitweb.patch
@@ -0,0 +1,16 @@
+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 also for gitweb.
+
+diff -Naurp irker.orig/irkerhook.py irker/irkerhook.py
+--- irker.orig/irkerhook.py
++++ irker/irkerhook.py
+@@ -263,6 +263,7 @@ class GitExtractor(GenericExtractor):
+ commit.rev = do("git describe %s 2>/dev/null" % shellquote(commit.commit))
+ if not commit.rev:
+ commit.rev = commit.commit[:7]
++ commit.commit = 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:])