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

Re: tool to diff cache <-> working directory

From
TGThomas Glanzmann <sithglan@stud.uni-erlangen.de>
Date
May 6, 2005, 03:13 UTC
Message-ID
<20050506031316.GB11506@cip.informatik.uni-erlangen.de>
In-Reply-To
<7vy8atdq7i.fsf@assigned-by-dhcp.cox.net>
Hello,
> Are you using pure GIT, without any Porcelain layer like Cogito?
no, I actually write a porcelain layer myself in perl. For several reasons:
	- I want something that runs on Solaris without gnu-utils
	- I want to understand the git internals.
	- I don't need branches and refs in .git
> Cogito has "cg-status" that shows something like "cvs -n update"
> output.

I just finished implementing my 'git status' command which does the following:

	(faui01) [~/work/git/git] git status
	 + 1
	 ? 2
	 - COPYING
	D* Makefile
	 * commit.c
	D  export.c
	+/-/* -> add, rm, mod
	?     -> orphan (not under revision control)
	D     -> dirty -> was explicit modified in cache but cache doesn't match working copy
I also have a ignore list for known orphans:
	(faui01) [~/work/git/git] cat .git/ignore
	\.o$
	git-cat-file
	...
	git-write-tree
	libgit.a
Sincerely,
	Thomas
Previous: Junio C Hamano
Message 5 of 5 in “tool to diff cache <-> working directory”
  1. Thomas GlanzmannMay 6, 2005
  2. Junio C HamanoMay 6, 2005
  3. Thomas GlanzmannMay 6, 2005
  4. Junio C HamanoMay 6, 2005
  5. Thomas GlanzmannMay 6, 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.