Wrapper to use custom p4 scripts.
authorIain Patterson <me@iain.cx>
Fri, 15 Apr 2011 15:07:08 +0000 (16:07 +0100)
committerIain Patterson <me@iain.cx>
Mon, 27 Jan 2014 14:49:47 +0000 (14:49 +0000)
commit0a1657631dbee738cce2a9bbe7ec8405a67bea42
tree34f85d958bfd721950b75243ecc6e1324424fdd8
parentdb19742047a79195fd7a61c1d5e3b494274cd75c
Wrapper to use custom p4 scripts.

Script which allows overriding Perforce commands or adding new commands.
If the file opt/p4/p4-<command> exists then "p4 <command>" will run the
file in preference to the builtin command.

Source opt/p4/common to identify the arguments which should be passed to
p4 itself.  They will be available in $p4opts.  The command name will be
available in $p4command.  Arguments to the command will be available in
the positional parameters as usual.

Three custom commands are included in this commit.

"p4 diffchange" does a diff of only files opened against the default
changelist or the changelist specified by the -c flag.

"p4 login" attempts to renew Kerberos credentials if SSO login is
enabled.

"p4 update" detects all new, delete or changed files, like "git -A" does.
.profile.d/p4.bashrc
opt/p4/common [new file with mode: 0644]
opt/p4/p4-diffchange [new file with mode: 0755]
opt/p4/p4-login [new file with mode: 0755]
opt/p4/p4-update [new file with mode: 0755]