summaryrefslogtreecommitdiff
path: root/Completion/Unix/Command/_perforce
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2005-07-28 11:40:08 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2005-07-28 11:40:08 +0000
commita680faf0502063ae7488b20a95d3d82f49a12120 (patch)
tree62209a60a3f182db5fb57738702adf4bebb0c78e /Completion/Unix/Command/_perforce
parentb45500cdd8286c9f2909240ec938a9a8cb4a3787 (diff)
downloadzsh-a680faf0502063ae7488b20a95d3d82f49a12120.tar.gz
zsh-a680faf0502063ae7488b20a95d3d82f49a12120.zip
unposted: updated _perforce for Perforce release 2005.1
Diffstat (limited to 'Completion/Unix/Command/_perforce')
-rw-r--r--Completion/Unix/Command/_perforce32
1 files changed, 30 insertions, 2 deletions
diff --git a/Completion/Unix/Command/_perforce b/Completion/Unix/Command/_perforce
index c1c449826..aab8d99ed 100644
--- a/Completion/Unix/Command/_perforce
+++ b/Completion/Unix/Command/_perforce
@@ -1423,12 +1423,19 @@ _perforce_cmd_change() {
}
+(( $+functions[_perforce_cmd_changelist] )) ||
+_perforce_cmd_changelist() {
+ _perforce_cmd_change "$@"
+}
+
+
(( $+functions[_perforce_cmd_changes] )) ||
_perforce_cmd_changes() {
_arguments -s : \
'-i[include integrated changes]' \
'-t[output time as well as date]' \
- '-l[long output]' \
+ '-l[long output, full change text]' \
+ '-l[long output, truncated change text]' \
'-c+[select by client]:client:_perforce_clients' \
'-m+[most recent N changes]:max changes: ' \
'-s+[select by status]:status:(pending submitted)' \
@@ -1437,6 +1444,12 @@ _perforce_cmd_changes() {
}
+(( $+functions[_perforce_cmd_changelists] )) ||
+_perforce_cmd_changelists() {
+ _perforce_cmd_changes "$@"
+}
+
+
(( $+functions[_perforce_cmd_client] )) ||
_perforce_cmd_client() {
_arguments -s : \
@@ -1560,6 +1573,7 @@ _perforce_cmd_filelog() {
_arguments -s : \
'-i[follow branches]' \
'-l[long output, full change text]' \
+ '-L[long output, truncated change text]' \
'-m[set maximum number of revisions to show]:max revisions: ' \
'-t[include time with date]' \
'*::file:_perforce_files'
@@ -1613,7 +1627,7 @@ _perforce_cmd_fstat() {
'-H[select synced files (-Rh)]' \
'-W[select opened files (-Ro)]' \
'-l[include fileSize, possibly slow (-Ol)]' \
- '-O-[select output type]:output type:((l\:fileSize p\:client\ path\ format r\:pending\ integrations s\:exclude\ local\ path))' \
+ '-O-[select output type]:output type:((f\:all\ revisions l\:fileSize p\:client\ path\ format r\:pending\ integrations s\:exclude\ local\ path))' \
'-P[output clientFile in full Perforce syntax (-Op)]' \
'-R-[restrict selected files]:restriction:((c\:mapped\ in\ client h\:synced\ to\ client n\:not\ synced\ to\ head o\:opened r\:resolved u\:unresolved))' \
'-s[shorten, no client-related data (-Os)]' \
@@ -1846,6 +1860,7 @@ _perforce_cmd_opened() {
_arguments -s : \
'-a[list for all clients]' \
'-c+[select by change]:change:_perforce_changes -tc' \
+ '-C[select by client]:client:_perforce_clients' \
'*::file:_perforce_files -to'
}
@@ -2027,6 +2042,7 @@ _perforce_cmd_users() {
(( $+functions[_perforce_cmd_verify] )) ||
_perforce_cmd_verify() {
_arguments -s : \
+ '-m[limit revisions]:max revisions: ' \
'-q[operate quietly]' \
'-u[compute and save digest if missing]' \
'-v[compute and save all digets]' \
@@ -2040,4 +2056,16 @@ _perforce_cmd_where() {
}
+(( $+functions[_perforce_cmd_workspace] )) ||
+_perforce_cmd_workspace() {
+ _perforce_cmd_client "$@"
+}
+
+
+(( $+functions[_perforce_cmd_workspaces] )) ||
+_perforce_cmd_workspaces() {
+ _perforce_cmd_clients "$@"
+}
+
+
_perforce "$@"