package main

func main() {}

package main

import (
	"fmt"
	"os"

	"github.com/libgit2/git2go"
)

func main() {
	repo, err := git.OpenRepository(".")
	if err != nil {
		fmt.Printf("not a repo: %s\n", err)
		os.Exit(5)
	}

	desc, err := repo.DescribeWorkdir(&git.DescribeOptions{})
	if err != nil {
		fmt.Printf("madness: %s\n", err)
		os.Exit(6)
	}
	fmt.Printf("repo: %s\n", desc)
}

Make some actual main method to play with.
Make some actual main method to play with.

Though it's clear that I don't have any idea how this describe method is meant to be used... it does actually work, and is presumably doing something slightly nontrivial.

Signed-off-by: Eric Myhre <2346ad27d7568ba9896f1b7da6b5991251debdf2@exultant.us>
