]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/cook: stop hardcoding 7-hex abbreviation
authorJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2016 22:26:05 +0000 (15:26 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 3 Oct 2016 22:26:05 +0000 (15:26 -0700)
cook

diff --git a/cook b/cook
index 3815aee776ac93c540a64d2608b34c42bfb34d76..0035d6565878335407d317f2e2f575b7217d10d6 100755 (executable)
--- a/cook
+++ b/cook
@@ -65,7 +65,7 @@ sub topic_relation {
 
        my $fh;
        open($fh, '-|',
-            qw(git log --abbrev=7), "--format=%m %h",
+            qw(git log --abbrev), "--format=%m %h",
             "$one...$two", "^master")
            or die "$!: open log --left-right";
        my (@left, @right);
@@ -203,7 +203,7 @@ sub get_commit {
        }
 
        open($fh, '-|',
-            qw(git log --first-parent --abbrev=7),
+            qw(git log --first-parent --abbrev),
             "--format=%ci %h %p :%s", "master..next")
            or die "$!: open log master..next";
        while (<$fh>) {