chiark / gitweb /
commitid: in Small with commitid, show start rather than end of commitid - actually
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 10 Feb 2016 01:55:48 +0000 (01:55 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 10 Feb 2016 01:55:48 +0000 (01:55 +0000)
commitid.scad.pl

index 35bc341ff4e2043fd64c4228d70548943211ae65..0af0115b410e3c6c4405e64199ea5ae947c3f185 100755 (executable)
@@ -540,7 +540,7 @@ sub do_git () {
            my $smallstr = rjustt($sz, $git_count, $git_dirty);
            my $forgitobj = $sz - length($git_count) - 1;
            if (defined($git_object) && $forgitobj >= 2) {
-               $smallstr = rjustt($forgitobj, $git_object).
+               $smallstr = ljustt($forgitobj, $git_object).
                    ($git_dirty || ' ').
                    $git_count;
            }