package main

import (
	"fmt"
	"github.com/s3git/s3git-go"
	"strings"
)

func main() {
	repo, _ := s3git.InitRepository(".")

	repo.Add(strings.NewReader("hello s3git"))

	repo.Commit("Initial commit")

	list, _ := repo.List("")

	for l := range list {
		fmt.Println(l)
	}

	commits, _ := repo.ListCommits("")

	for commit := range commits {
		fmt.Println(commit)
	}
}

package main

import (
	"fmt"
	"github.com/s3git/s3git-go"
	"strings"
)

func main() {
	repo, _ := s3git.InitRepository(".")

	repo.Add(strings.NewReader("hello s3git"))

	repo.Commit("Initial commit")

	commits, _ := repo.ListCommits("")

	for commit := range commits {
		fmt.Println(commit)
	}
}

Move list to clone example
Move list to clone example
