git/list[1] front-page[2] threads[3] people[4] search[5] about
 

git show submodule

From
МСМихаил Павлович Сидоренко <motherlode.muwa@gmail.com>
Date
Dec 30, 2020, 07:29 UTC
Message-ID
<4ddc481f-7d03-e225-13a0-d5fd33456c43@gmail.com>
In-Reply-To
<ab49430e-5a9f-5910-e048-7f07dca8f898@gmail.com>
Hello!
git show dose not work with file-submodule. Try this series of commands:

cd /tmp/ git clone https://github.com/abdes/submodule-docker-dev-workflow.git cd submodule-docker-dev-workflow git show ee83dd336f27315d14a7ad6ad934897a61e49623:LICENSE | head -n 1 # good git show ee83dd336f27315d14a7ad6ad934897a61e49623:server # bad

My output:

$ cd /tmp/ $ git clone https://github.com/abdes/submodule-docker-dev-workflow.git Клонирование в «submodule-docker-dev-workflow»… remote: Enumerating objects: 110, done. remote: Total 110 (delta 0), reused 0 (delta 0), pack-reused 110 Получение объектов: 100% (110/110), 24.76 KiB | 313.00 KiB/s, готово. Определение изменений: 100% (56/56), готово. $ cd submodule-docker-dev-workflow $ git show ee83dd336f27315d14a7ad6ad934897a61e49623:LICENSE | head -n 1 # good The MIT License (MIT) $ git show ee83dd336f27315d14a7ad6ad934897a61e49623:server # bad fatal: bad object ee83dd336f27315d14a7ad6ad934897a61e49623:server

It would be convenient for me so that I could see the revision of the submodule through git show. Without using the git submodule status command.

Happy New Year, Mikhail Pavlovich Sidorenko.

Next: Philippe Blain
Message 1 of 2 in “git show submodule”
  1. Михаил Павлович СидоренкоDec 30, 2020
  2. Philippe BlainDec 30, 2020

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.