| MATLAB Function Reference | ![]() |
Graphical Interface
除了使用 checkin 指令外,也可在Editor, Simulink, 和 Stateflow
的File 選單中點選 Source Control Check In。
Syntax
checkin('filename','comments','string')
checkin({'filename1','filename2','filename3', ...},'comments',
'string')
checkin('filename','option','value', ...)
Description
checkin(' 將檔名為 filename','comments','string')
filename 的檔案送入到 source control system。 filename必須為包含完整路徑的檔名。在
送入之前,一定要儲存檔案,在使用 checkin
指令的時候,仍然可以開啓或關閉此檔。 string 是對送入到 source control system 的註解。 你一定要
使用 comments
和 'string'二個引數。
checkin({'filename1','filename2','filename3', ...},' 將檔名為 comments',
'string')
filename1 到 filenamen
的檔案送入 source control system中。同樣地檔名必須包含完整的路徑。剩下的二個引數 comments
和 'string'會用到所有送入的檔案中。
checkin(' filename','option','value', ...)
提供額外 checkin 的選擇性引數。 option
和 value 引數列在下列表格中
| 選擇性引數(option Argument) |
說明 |
引數值 |
|
|
|
|
設為 on時, filename
仍然是取出的狀態。而註解會被送出。預設值為 off。 |
|
你可以送入之前已經用MATLAB session所取出或直接從 source control system所取出的檔案。(You can check in a file that you checked out in a previous MATLAB session or that you checked out directly from your source control system.)
若使用 MerantTM PVCS® source control system,一定要在 cmopts.m
中指定投射檔(project file)。相關指令可參閱 cmopts 。
Example 1 - Check in a File with Comments
checkin('/matlab/mymfiles/clock.m','comments','Adjustment for
Y2K')
將 /matlab/mymfiles/clock.m 送入 source control system
,而註解為 Adjustment for Y2K。
Example 2 - Check in Multiple Files with Comments
checkin({'/matlab/mymfiles/clock.m', ...
'/matlab/mymfiles/calendar.m'},'comments','Adjustment for Y2K')
將二個檔案以相同的註解送入 source control system 中。
Example 3 - Check a File in and Keep It Checked out
checkin('/matlab/mymfiles/clock.m','comments','Adjustment for
Y2K','lock','on')
將 /matlab/mymfiles/clock.m 送入 source control system 中而且檔案仍然是取出的狀態。
See Also
checkout, cmopts, undocheckout
| char | checkout | ![]() |