Previous Table of Contents Index Next
Perforce 2012.1: Command Reference

p4 status
Open files for add, delete, and/or edit in order to reconcile a workspace with changes made outside of Perforce.
p4 [g-opts] status [ -e -a -d -f -I ]
p4 [g-opts] status -A [ -e -a -d -f -I ]
The p4 status command finds unopened files in a client's workspace and detects the following three types of inconsistencies between your workspace and the server:
Files present in the depot, present in your have list, but missing from your workspace. By default, these files are then opened for delete.
To limit the scope of p4 status to add, edit, or delete, use the -a, -e, or -d flags.
By default, p4 status does not check files and/or paths mentioned in the P4IGNORE file. Use the -I flag to override this behavior and ignore the P4IGNORE file.
Add, edit, and delete files. Files in the client workspace not under Perforce control are opened for add. Changed files are opened for edit. Files in the user's have list that have been removed from the workspace are opened for delete.
Add filenames that contain special (wildcard) characters. Files containing the special characters @, #, %, or * are reformatted to encode the characters using hex notation. After these files are added, you must refer to them using their reformatted filenames.
Usage Notes
Can File Arguments Use
Revision Specifier?
The p4 status command produces output in local syntax. To see file names and paths in depot syntax, use p4 reconcile.
When called without arguments, p4 status only previews the results of the workspace reconciliation. You must use either p4 status -A (or some combination of the -e, -a, or -d flags) to actually open the files in a changelist.
Related Commands

Previous Table of Contents Index Next

Perforce 2012.1: Command Reference
Copyright 1999-2012 Perforce Software.