jonas / tig

Text-mode interface for git
https://jonas.github.io/tig/
GNU General Public License v2.0
12.48k stars 611 forks source link

Feature: show submodule sha in tree view #1282

Closed jberkel closed 8 months ago

jberkel commented 1 year ago

In the tree view, for submodules tig only shows

[tree] t - file X of N

It'd more useful to display the sha of the commit the submodule is linked to.

Screenshot 2023-05-09 at 20 12 38
❯ git ls-tree HEAD vendor/
100644 blob 5d4d4692beecd6a915b3f6c188459f91c781970a    vendor/BUILD.bazel
160000 commit 090faecb454fbd6e6e17a75ef8146acb037118d4  vendor/benchmark
100644 blob d8cf998dc8403a0971157e3cfbb799f9864e97bd    vendor/benchmark.cmake
160000 commit 5140cf182b904138ba7f9848633fde9460df857a  vendor/boost
...