ClientReopenFiles Method (Options, FileSpec)
|
Reopen - Change Filetype or move to different changelist
Namespace:
Perforce.P4
Assembly:
p4api.net (in p4api.net.dll) Version: 2024.1.261.8274
Syntaxpublic IList<FileSpec> ReopenFiles(
Options options,
params FileSpec[] files
)
Public Function ReopenFiles (
options As Options,
ParamArray files As FileSpec()
) As IList(Of FileSpec)
public:
IList<FileSpec^>^ ReopenFiles(
Options^ options,
... array<FileSpec^>^ files
)
member ReopenFiles :
options : Options *
files : FileSpec[] -> IList<FileSpec>
Parameters
- options
- Type: Perforce.P4Options
command options - files
- Type: Perforce.P4FileSpec
Array of files
Return Value
Type:
IListFileSpeclist of files reopened
Remarks
p4 help reopen
reopen -- Change the filetype of an open file or move it to
another changelist
p4 reopen [-c changelist#] [-t filetype] file ...
Reopen an open file for the current user in order to move it to a
different changelist or change its filetype.
The target changelist must exist; you cannot create a changelist by
reopening a file. To move a file to the default changelist, use
'p4 reopen -c default'.
If -t filetype is specified, the file is assigned that filetype. If
a partial filetype is specified, it is combined with the current
filetype. For details, see 'p4 help filetypes'.
See Also