<status flag> <file>
cg-status - show status of your working tree
cg-status [-g] [[-n] -s STATUS] [-w] [-x] [DIRPATH]
The output includes the list of branches and merge status. Current branch is marked by ">", remote branches are marked by "R".
Then, the files in the working tree are printed out. The output has the following format:
<status flag> <file>
where <status flag> can be one of the following:
<file> is unknown.
<file> has been added.
<file> has been deleted.
<file> is gone from your working copy but not deleted by cg-rm.
<file> has been touched or modified.
<file> has been touched or modified, but will not be automatically committed the next time you call cg-commit. This is used during a merge to mark files which contained local changes before the merge.
If neither -g or -w is passed, both is shown; otherwise, only the corresponding parts are shown.
Show the GIT repository information.
Do not show status flags. This is probably useful only when you filter the flags for a single specific flag using the -s option.
Show only files with the given status flag, e.g. -s D. You can list multiple flags (-s MmA) to filter for all of them.
Show the working tree file list.
Don't exclude any files from listing.
Path to the directory to use as the base for the working tree file list (instead of the current directory).
Print usage help.
If the file exists it will be used to prune which files to show status for. The format is similar to the dontdiff file; each line contains a pattern for a file or group of files to exclude.
.gitignore in the working tree will be used as an exclude file. The excludes are applied from the project root approaching the current subdirectory.
Copyright © Petr Baudis, 2005 Copyright © Pavel Roskin 2005