Re: tool to diff cache <-> working directory
- From
- Thomas 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