p4 reopen
Move opened files between changelists or change the files' type, or move the client's stream spec to a different changelist.
Syntax
p4 [g-opts] reopen [-c changelist] [-t filetype] file ...
p4 [g-opts] reopen [-c changelist] -So
Description
for files
p4 reopen has the following uses for files:
- To move
	an open file from its current pending changelist to pending changelist
	changelist, usep4 reopen -c changelist file
- To move a file to the
	default changelist, use p4 reopen -c default
- To change the
	type of a file, use p4 reopen -t filetype- If file patterns are provided, all open files matching the patterns are moved or retyped. The two options can be combined to move a file and change its type in the same operation.
 
for streams
p4 reopen has the following uses for a stream:
- To move
	an open stream from its current pending changelist to pending changelist
	changelist, usep4 reopen -So -c changelist
- To move a stream to the
	default changelist, use p4 reopen -So -c default
Options for files
| 
 | Move all open files matching file pattern
	       | 
| 
 | When submitted, store file as type  See File types for a list of file types. | 
| 
 | See Global options. | 
Options for streams
| 
 | Move the open stream spec  to pending changelist
	       | 
| 
 | Move the stream spec only. | 
| 
 | See Global options. | 
Usage notes
| Can File Arguments Use Revision Specifier? | Can File Arguments Use Revision Range? | Minimal Access Level Required | 
|---|---|---|
| No | No | 
 | 
Examples for files
| 
 | Reopen all open files as text files with keyword expansion. | 
| 
 | Move all open files under directory  | 
| 
 | Move all open  | 
Examples for streams
| 
 | Move the stream spec of the client to changelist 411. | 
| 
 | Move the stream spec of the client to the default changelist. |