subtree

package
v0.0.0-...-a80b3ab Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

This implement utilities around git subtree

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SubtreeSplit

func SubtreeSplit(rootDir string, prefix string) (commitHash string, err error)

This methods isolates a sub folder of the git and return its hash

Types

type Subtree

type Subtree struct {
	Prefix           string
	RemoteRepository string
	RemoteRef        string
	// contains filtered or unexported fields
}

func New

func New(prefix, remoteRepository string) *Subtree

func (*Subtree) RemoteName

func (s *Subtree) RemoteName() string

build a nice and easy remote name

func (*Subtree) RootDir

func (s *Subtree) RootDir() (string, error)

this return the root dir of the git repository

func (*Subtree) TestSubtreeUpstream

func (s *Subtree) TestSubtreeUpstream(t *testing.T)

this methods tests if subtree vendored repository has been upsteamed. This makes sure that all puppet modules changes have to go to their repository first before they can be merge into tarmak

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL