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

git diagnose with invalid CLI argument does not report error

From
SSheik <sahibzone@gmail.com>
Date
Oct 25, 2023, 20:49 UTC
Message-ID
<849b6ee2-99f3-4aaa-835f-44d3e13befc3@gmail.com>
Hi Maintainers,

Running git diagnose with an invalid CLI argument in a valid Git directory does not report error. Expected behaviour would be that it reports an error.

#Example shell commands which should have reported an error but continues to succeed

cd $ToAGitDirectory
git diagnose mod
git diagnose mode
git diagnose mode=all
Thanks
Sheik

[System Info] git version: git version 2.42.0 cpu: x86_64 no commit associated with this build sizeof-long: 8 sizeof-size_t: 8 shell-path: /bin/sh uname: Linux 6.5.0-2-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.5.6-1 (2023-10-07) x86_64 compiler info: gnuc: 13.2 libc info: glibc: 2.37 $SHELL (typically, interactive shell): /bin/bash

[Enabled Hooks]
Next: Bagas Sanjaya
Message 1 of 5 in “git diagnose with invalid CLI argument does not report error”
  1. SheikOct 25, 2023
  2. Bagas SanjayaOct 26, 2023
  3. Eric SunshineOct 26, 2023
  4. Emily ShafferOct 26, 2023
  5. Eric SunshineOct 26, 2023

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.