threads / discuss / 491

list all dirty files in working directory

Subject: list all dirty files in working directory

## tl;dr

4 messages between May 5, 2005 and May 6, 2005.

replies: 3people: 3as markdown or json

Thomas Glanzmann· May 5, 2005, 21:32 UTC · re: Thomas Glanzmann · lore

Re: list all dirty files in working directory

Hello,
* Thomas Glanzmann <sithglan@stud.uni-erlangen.de> [050505 23:24]:
> is there another way than call 'checkout-cache -a' and parse the output?
> Maybe a command which lists one dirty file per line?
of course I meant parsing the output of 'update-cache --refresh'.
	Thomas
Andreas Gal· May 5, 2005, 21:35 UTC · re: Thomas Glanzmann · lore

Re: list all dirty files in working directory

git-update-cache --refresh | while read line; do
    echo $line | cut -d ':' -f 1
done
That should give you one file per line, for every dirty file. 
Andreas
On Thu, 5 May 2005, Thomas Glanzmann wrote:
Show 10 quoted lines
> Hello,
> is there another way than call 'checkout-cache -a' and parse the output?
> Maybe a command which lists one dirty file per line?
> 
> 	Thomas
> -
> To unsubscribe from this list: send the line "unsubscribe git" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> 
Linus Torvalds· May 6, 2005, 02:06 UTC · re: Thomas Glanzmann · lore

Re: list all dirty files in working directory

On Thu, 5 May 2005, Thomas Glanzmann wrote:
>
> is there another way than call 'checkout-cache -a' and parse the output?
> Maybe a command which lists one dirty file per line?
A simple
	git-diff-files
does what I think you want.

Of course, it does a lot more too, but part of the deal is that you get to know which files are dirty.

		Linus

← back to recent threads