diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-30 08:27:23 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-10-02 08:09:42 +1000 |
commit | 7b4a0f20b26d884cb756f09bc7514e57941709d4 (patch) | |
tree | 89fe1962fd3bc4b2b8a58b41eef15191839df909 /pkg/commands/models/submodule_config.go | |
parent | 3b93b5dde410fbed657f04c16d6b89c80c5be861 (diff) |
add submodules context
Diffstat (limited to 'pkg/commands/models/submodule_config.go')
-rw-r--r-- | pkg/commands/models/submodule_config.go | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pkg/commands/models/submodule_config.go b/pkg/commands/models/submodule_config.go index c6481bbd1..f52576921 100644 --- a/pkg/commands/models/submodule_config.go +++ b/pkg/commands/models/submodule_config.go @@ -5,3 +5,15 @@ type SubmoduleConfig struct { Path string Url string } + +func (r *SubmoduleConfig) RefName() string { + return r.Name +} + +func (r *SubmoduleConfig) ID() string { + return r.RefName() +} + +func (r *SubmoduleConfig) Description() string { + return r.RefName() +} |