summaryrefslogtreecommitdiffstats
path: root/pkg/commands/submodules.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-10-01 08:18:16 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-10-02 08:09:42 +1000
commitda3e00823f733743c2bd8076d13955dbed9fcbae (patch)
tree0b9a5dfa358fe8e1d0b0d53ebb897282548a4581 /pkg/commands/submodules.go
parentf3be2b3e68a49742ee88053a1d029926bc0d1819 (diff)
allow submodule init and show submodule diff with a prefix
Diffstat (limited to 'pkg/commands/submodules.go')
-rw-r--r--pkg/commands/submodules.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/commands/submodules.go b/pkg/commands/submodules.go
index 06abd9bb6..19debf890 100644
--- a/pkg/commands/submodules.go
+++ b/pkg/commands/submodules.go
@@ -123,5 +123,8 @@ func (c *GitCommand) SubmoduleUpdateUrl(name string, path string, newUrl string)
}
return c.OSCommand.RunCommand("git submodule sync %s", path)
+}
+func (c *GitCommand) SubmoduleInit(path string) error {
+ return c.OSCommand.RunCommand("git submodule init %s", path)
}