Script Editor: SVN Plugins – Arma Reforger

From Bohemia Interactive Community
Jump to navigation Jump to search
(Page creation)
 
(Remove warning about $line not working)
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Infobox/WorkbenchPlugin
|name= SVN Plugins
|editor= resource script
|descr= CVS-related shortcut commands
|shortcut= <nowiki/>
{{{!}} class="align-left"
! SVN Blame
{{!}}
{{Controls|Alt|Shift|B}}<br>''{{Link|Arma Reforger:Script Editor}} only''
{{!}}-
! SVN Diff
{{!}}
{{Controls|Alt|Shift|I}}<br>''{{Link|Arma Reforger:Script Editor}} only''
{{!}}-
! SVN Log
{{!}}
{{Controls|Alt|Shift|L}}
{{!}}}
|file= {{Link|enfusion://ScriptEditor/scripts/WorkbenchGame/ScriptEditor/SCR_SVNPlugin.c}}
}}
SVN plugins are keyboard shortcuts to SVN commands - more precisely {{Link|https://tortoisesvn.net/|TortoiseSVN}} commands by default.
SVN plugins are keyboard shortcuts to SVN commands - more precisely {{Link|https://tortoisesvn.net/|TortoiseSVN}} commands by default.
They are defined in {{Link|enfusion://ScriptEditor/scripts/WorkbenchGame/ScriptEditor/SCR_SVNPlugin.c}}.
They are defined in {{Link|enfusion://ScriptEditor/scripts/WorkbenchGame/ScriptEditor/SCR_SVNPlugin.c}}.
Line 9: Line 30:


== Commands ==
== Commands ==
Commands can be anything and have two possible parameters:
* {{hl|$path}}: replaced by the absolute file path between double quotes ({{hl|"}}), e.g {{hl|"C:\Users\John Bob\MyFile.c"}}.
* {{hl|$line}}: replaced by the current cursor position's line number.


{| class="wikitable"
{| class="wikitable"
! Name
! Name
! Shortcut
! style="min-width: 12em" | Shortcut
! Description
! Description
! Command
! Command
Line 30: Line 55:
  TortoiseProc /command:diff /path:$path
  TortoiseProc /command:diff /path:$path


  gitex difftool $file
  gitex difftool $path
|-
|-
| ''SVN'' Log
| ''SVN'' Log
Line 40: Line 65:
  gitex filehistory $path
  gitex filehistory $path
|}
|}
{{Feature|informative|
{{hl|$path}} will be replaced by the absolute file path between double quotes ({{hl|"}}).<br>
As of {{armaR}} 1.0.0, {{hl|$line}} is '''''not''''' replaced by the line number unlike what the tool says.
}}





Latest revision as of 12:23, 16 September 2024

SVN Plugins

This plugin is available in:

SVN Blame

Alt + ⇧ Shift + B
Script Editor only

SVN Diff

Alt + ⇧ Shift + I
Script Editor only

SVN Log

Alt + ⇧ Shift + L

CVS-related shortcut commands

File: SCR_SVNPlugin.c

SVN plugins are keyboard shortcuts to SVN commands - more precisely TortoiseSVN commands by default. They are defined in SCR_SVNPlugin.c.

The plugins are named SVN but can absolutely be used with another VCS software like Git (e.g Git Extensions), provided commands are replaced in the plugins's options.
They may be renamed to VCS plugins in the future.


Commands

Commands can be anything and have two possible parameters:

  • $path: replaced by the absolute file path between double quotes ("), e.g "C:\Users\John Bob\MyFile.c".
  • $line: replaced by the current cursor position's line number.
Name Shortcut Description Command
SVN Blame Alt + ⇧ Shift + B List the last author of each line, to find the culprit
TortoiseProc /command:blame /path:$path /startrev:1 /endrev:-1 /ignoreeol /ignoreallspaces /line:$line
gitex blame $path
SVN Diff Alt + ⇧ Shift + I List the changes between the repository and the local file
TortoiseProc /command:diff /path:$path
gitex difftool $path
SVN Log Alt + ⇧ Shift + L Show the file's changes commit history
TortoiseProc /command:log /path:$path
gitex filehistory $path


See Also