From 639da78cb0395c79dd829c023388409a78ad8a2b Mon Sep 17 00:00:00 2001
From: Sergey Matveev <stargrave@stargrave.org>
Date: Tue, 22 Nov 2022 13:27:47 +0300
Subject: [PATCH] SHA256 object format support

---
 autoload/codecomm.vim | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/autoload/codecomm.vim b/autoload/codecomm.vim
index 8d39de7..22a3fd9 100644
--- a/autoload/codecomm.vim
+++ b/autoload/codecomm.vim
@@ -1,6 +1,7 @@
 vim9script
 
 const SHA1Len = 40
+const SHA256Len = 64
 const Separator = "---------------------------------- >8 ----------------------------------"
 
 export def Do(firstline: number, lastline: number, gitDir: string)
@@ -24,6 +25,10 @@ export def Do(firstline: number, lastline: number, gitDir: string)
         header = add(header, path[: 8])
         header = add(header, "|")
         header = add(header, path[SHA1Len + 1 :])
+    elseif match(path, "/") ==# SHA256Len
+        header = add(header, path[: 8])
+        header = add(header, "|")
+        header = add(header, path[SHA256Len + 1 :])
     else
         header = add(header, path)
     endif
-- 
2.51.0