gitty 0.3.3 → 0.3.4
Sign up to get free protection for your applications and to get access to all the features.
- data/assets/hooks/auto-submodules +14 -1
- metadata +2 -2
@@ -9,7 +9,20 @@
|
|
9
9
|
# - If a submodule has been added on the branch you move to, it alerts you
|
10
10
|
# - Otherwise, it checks out the revision for you
|
11
11
|
# version: 0.1
|
12
|
-
# targets: ["post-applypatch", "post-checkout", "post-merge"]
|
12
|
+
# targets: ["pre-rebase", "post-applypatch", "post-checkout", "post-merge"]
|
13
|
+
|
14
|
+
# this is a bit of a hack: when a rebase is ran, we don't want to have the initial checkout update submodules
|
15
|
+
require 'fileutils'
|
16
|
+
if ($0.include?("pre-rebase"))
|
17
|
+
`touch`
|
18
|
+
FileUtils.touch(".git/queue-rebase-run")
|
19
|
+
exit 0
|
20
|
+
end
|
21
|
+
|
22
|
+
if File.exist?(".git/queue-rebase-run")
|
23
|
+
FileUtils.rm(".git/queue-rebase-run")
|
24
|
+
exit 0
|
25
|
+
end
|
13
26
|
|
14
27
|
module GitMethods
|
15
28
|
def chdir_parent
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Harper
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-02
|
12
|
+
date: 2010-03-02 00:00:00 -07:00
|
13
13
|
default_executable: git-hook
|
14
14
|
dependencies: []
|
15
15
|
|