-
Notifications
You must be signed in to change notification settings - Fork 1
/
CommandLineHooks.xml
61 lines (57 loc) · 2.05 KB
/
CommandLineHooks.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<!---->
<!--
This is a preset config file; any changes you make to it will be discarded when you launch SQL Source Control.
To keep any changes, you must save them as a new config file in the default location:
%USERPROFILE%\AppData\Local\Red Gate\SQL Source Control 2\CommandLineHooks
Do not store any usernames, passwords, or other sensitive data in this config file. The contents of the config file
will be checked into your source control repository and may, with your consent, be sent to Red Gate if SQL Source Control
crashes.
-->
<HooksConfig version="1" type="HooksConfig">
<Name>Git</Name>
<Commands type="Commands" version="2">
<element>
<key type="string">GetLatest</key>
<value version="1" type="GenericHookCommand">
<CommandLine></CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Add</key>
<value version="1" type="GenericHookCommand">
<CommandLine>git add ($Files)</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Edit</key>
<value version="1" type="GenericHookCommand">
<CommandLine></CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Delete</key>
<value version="1" type="GenericHookCommand">
<CommandLine>git rm ($Files)</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Commit</key>
<value version="1" type="GenericHookCommand">
<CommandLine>git commit -F "($MessageFile)" -o "($ScriptsFolder)\"</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
<element>
<key type="string">Revert</key>
<value version="1" type="GenericHookCommand">
<CommandLine>git checkout "($ScriptsFolder)\"</CommandLine>
<Verify>exitCode == 0</Verify>
</value>
</element>
</Commands>
</HooksConfig>