File tree 1 file changed +6
-6
lines changed
lib/overcommit/hook_context/helpers
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -23,6 +23,12 @@ def setup_environment
23
23
end
24
24
end
25
25
26
+ # Returns whether the current git branch is empty (has no commits).
27
+ def initial_commit?
28
+ return @initial_commit unless @initial_commit . nil?
29
+ @initial_commit = Overcommit ::GitRepo . initial_commit?
30
+ end
31
+
26
32
# Restore unstaged changes and reset file modification times so it appears
27
33
# as if nothing ever changed.
28
34
#
@@ -61,12 +67,6 @@ def store_modified_times
61
67
end
62
68
end
63
69
64
- # Returns whether the current git branch is empty (has no commits).
65
- def initial_commit?
66
- return @initial_commit unless @initial_commit . nil?
67
- @initial_commit = Overcommit ::GitRepo . initial_commit?
68
- end
69
-
70
70
# Returns whether there are any changes to tracked files which have not yet
71
71
# been staged.
72
72
def unstaged_changes?
You can’t perform that action at this time.
0 commit comments