Skip to content

steeve/git-fast-import-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

git-fast-import-go

This is a package to easily create streams for git fast-import.

How to get

$ go get https://github.com/steeve/git-fast-import-go

How to use

    committer := &gitfastimport.Signature{
        Name:  "Foo Bar",
        Email: "foo@bar.com",
        When: time.Now()
    }

    gitfastimport.WriteCommit(os.Stdout, "refs/heads/master", "git message", Committer, Committer)
    gitfastimport.WriteFileModify(os.Stdout, 644, "myfile.txt")
    gitfastimport.WriteDataBegin(os.Stdout)
    os.Stdout.Write([]byte("File content"))
    gitfastimport.WriteDataEnd(os.Stdout)

Then run:

$ go run program.go | git fast-import

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages