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

Re: [PATCH] t1900: add tests for git repo structure subcommand

From
K Jayatheerth <jayatheerthkulkarni2005@gmail.com>
Date
Mar 10, 2026, 13:34 UTC
Message-ID
<20260310133435.42995-1-jayatheerthkulkarni2005@gmail.com>
In-Reply-To
<pull.2066.git.1773112159662.gitgitgadget@gmail.com>
Show 28 quoted lines
> From: Mansi Singh <mansimaanu8627@gmail.com>
> 
> The t1900 test file covers git repo info thoroughly but has
> no tests for the git repo structure subcommand. Add basic
> tests to verify that:
> 
> - git repo structure succeeds and produces no stderr output
> - git repo structure --format=keyvalue outputs expected keys
> - git repo structure --format=nul succeeds
> - git repo structure rejects an unknown format
> 
> Signed-off-by: Mansi Singh <mansimaanu8627@gmail.com>
> ---
>     t1900: add tests for git repo structure subcommand
> 
>     Add tests for the git repo structure subcommand in t1900-repo-info.sh.
>     The tests verify that git repo structure outputs the expected fields
>     (commits, trees, blobs, tags) in both default and key-value formats.
> 
>     Signed-off-by: Mansi Singh mansimaanu8627@gmail.com
> 
> Published-As: https://github.com/gitgitgadget/git/releases/tag/pr-2066%2FMansiSingh17%2Frepo-add-structure-tests-v3-v1
> Fetch-It-Via: git fetch https://github.com/gitgitgadget/git pr-2066/MansiSingh17/repo-add-structure-tests-v3-v1
> Pull-Request: https://github.com/gitgitgadget/git/pull/2066
> 
>  t/t1900-repo-info.sh | 22 ++++++++++++++++++++++
>  1 file changed, 22 insertions(+)
> 
Hi,

The very next file in t/ i.e t1901.. is about repo structure

You might wanna check that out because I find most of these to be redundant

Regards
- Jayatheerth
Previous: Junio C Hamano
Message 3 of 3 in “t1900: add tests for git repo structure subcommand”
  1. t1900: add tests for git repo structure subcommandMansi Singh via GitGitGadget, Mar 10, 2026
  2. Junio C HamanoMar 10, 2026
  3. K JayatheerthMar 10, 2026

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.