We use perforce as a control source for Visual Studio. Work with P4 and P4V. Can I add a pre-hook on the client side? for example, to provide the word "debugger"; does not exist in * .js files. May find something on Google. Thank.
Perforce triggers can be used to enforce this policy, but they run on the server, not on the client side. Therefore, most of the sites that I know of will apply a rule similar to the one you are describing with the help of a content change trigger on the server.
http://www.perforce.com/perforce/doc.current/manuals/cmdref/triggers.html
, . , ?
, , , .
, , - " ": https://www.perforce.com/perforce/doc.current/manuals/p4v/custom_tools.html
, script, , arg p4 commit, .