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

[COGITO] cg-status in an empty repo spits out git-diff-index usage info

From
EMElfyn McBratney <beu@gentoo.org>
Date
Sep 30, 2005, 18:18 UTC
Message-ID
<20050930181809.GB13582@emcb.local>
[Re-sending ..]
Hello Petr, git list,

A `cg-status` in an empty repo (i.e., straight after a `cg-init -I`) spits out git-diff-index usage information, a la:

	[($) 09:03:42] beu@zippy ~/git/test
	> cg-status
	Heads:
	    >master
	    
	    usage: git-diff-index [-m] [--cached] [<common diff options>] <tree-ish> [<path>...]
	    common diff options:
	    [...]

which I'm guessing isn't expected behaviour ;) `git status` does the same, FWIW. I'm having a look around to try and figure out why, and will try to work up a patch to fix it, but in case I don't find the bug (or feature ;), consider this a heads-up. :)

(And I've just used gitk for the first time, too, and I must say it's one invaluable piece of software ! Kudos to it's creators :)

This is with latest cogito.git (b06f2a707963c8712f7a6bbd4b89bae758bcf92a, though the 'bug' is also present in 0.15.1) with git 0.99.7d.

Best, Elfyn

-- 
Elfyn McBratney
Gentoo Developer/Perl Team Lead
beu/irc.freenode.net                            http://dev.gentoo.org/~beu/
+------------O.o--------------------- http://dev.gentoo.org/~beu/pubkey.asc

PGP Key ID: 0x69DF17AD
PGP Key Fingerprint:
  DBD3 B756 ED58 B1B4 47B9  B3BD 8D41 E597 69DF 17AD
Next: Junio C Hamano
Message 1 of 3 in “[COGITO] cg-status in an empty repo spits out git-diff-index usage info”
  1. Elfyn McBratneySep 30, 2005
  2. Junio C HamanoOct 1, 2005
  3. Elfyn McBratneyOct 4, 2005

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.